Structsยง
- Registration ๐
- A registration of a thread with an index.
- Shard ๐
- A shard containing a single reader-writer lock.
- Sharded
Lock - A sharded reader-writer lock.
- Sharded
Lock Read Guard - A guard used to release the shared read access of a
ShardedLock
when dropped. - Sharded
Lock Write Guard - 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 a
usize
that identifies the current thread. - thread_
indices ๐