Expand description
Raw synchronization primitives.
-
RawIntervalRwLockprovides a non-blocking (fallible) interface, similar tostd::sync::RwLock::try_write. -
RawBlockingIntervalRwLockprovides a blocking (infallible) interface, similar tostd::sync::RwLock::write. -
RawAsyncIntervalRwLockprovides aFuture-based interface, something that could be used to build a high-level interface likefutures::lock::Mutex.
Notes
- These traits’ methods take
Pin<&Self>as the receiver. This means that the trait implementations of client-provided types such asIndexare not prevented to recursively call into these methods. This does not lead to an undefined behavior but may cause a panic or abort.
Modules
- future
asyncThe thread-safe,Future-oriented implementation. - The thread-unsafe (but faster) implementation.
- sync
stdThe thread-safe, blocking implementation that usesstd’s interthread synchronization API.
Traits
- A
Future-based interface to a specialized readers-writer lock optimized for interval locks. - A blocking interface to a specialized readers-writer lock optimized for interval locks.
- A non-blocking interface to a specialized readers-writer lock optimized for interval locks.