Module crossbeam_utils::sync::sharded_lock
source ยท Structsยง
- Registration ๐A registration of a thread with an index.
- Shard ๐A shard containing a single reader-writer lock.
- A sharded reader-writer lock.
- A guard used to release the shared read access of a
ShardedLock
when dropped. - A guard used to release the exclusive write access of a
ShardedLock
when dropped. - Thread
Indices ๐The global registry keeping track of registered threads and indices.
Constantsยง
- NUM_
SHARDS ๐The number of shards per sharded lock. Must be a power of two. - REGISTRATION ๐
Functionsยง
- current_
index ๐Returns ausize
that identifies the current thread. - thread_
indices ๐