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. - ThreadIndices ๐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 a
usize
that identifies the current thread. - thread_indices ๐