Module interlock::raw [−][src]
Expand description
Raw synchronization primitives.
-
RawIntervalRwLock
provides a non-blocking (fallible) interface, similar tostd::sync::RwLock::try_write
. -
RawBlockingIntervalRwLock
provides a blocking (infallible) interface, similar tostd::sync::RwLock::write
. -
RawAsyncIntervalRwLock
provides 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 asIndex
are not prevented to recursively call into these methods. This does not lead to an undefined behavior but may cause a panic or abort.
Modules
async
The thread-safe, Future
-oriented implementation.
The thread-unsafe (but faster) implementation.
std
The thread-safe, blocking implementation that uses std
’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.