Module crossbeam_utils::sync::sharded_lock
source · Structs
- 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. - The global registry keeping track of registered threads and indices.
Constants
- The number of shards per sharded lock. Must be a power of two.
Functions
- Returns a
usize
that identifies the current thread.