This crate provides spin-based versions of the
std::lazy. Because synchronization is done through spinning,
the primitives are suitable for use in
Guards can be sent and shared between threads
spin is not a drop-in replacement for
should not be considered as such)
an effort is made to keep this crate reasonably consistent with
Many of the types defined in this crate have 'additional capabilities' when compared to
Guards support leaking.
Onceowns the value returned by its
RwLocksupports counting readers and writers.
Conversely, the types in this crate do not have some of the features
- Locks do not track panic poisoning.
The crate comes with a few feature flags that you may wish to use.
lock_apienabled support for
ticket_mutexuses a ticket lock for the implementation of
stdenables support for thread yielding instead of spinning
Synchronization primitive allowing multiple threads to synchronize the beginning of some computation.
Synchronization primitives for lazy evaluation.
Locks that have the same behaviour as a mutex.
Synchronization primitives for one-time evaluation.
A lock that provides data access to either one writer or many readers.