Crate thex [−] [src]
This crate aims, like many others, to get rid of the pesky 'a
in your
guards, while keeping the easy to reason about semantics of
read-write-locks.
The trick is based on a finite set of static RwLock
s, which are mapped to
the memory adress of a container type implementing StableDeref
, from the
stable_deref
crate.
Structs
Exclusive |
A guard guaranteeing thread-local exclusivity while it is held |
Shared |
A guard guaranteeing that no writes are made while it is held |
Thex |
A wrapper type providing run-time shared ord thread-local exclusive access
to an inner value of type |