Locks that have the same behaviour as a mutex.
Mutex in the root of the crate, can be configured using the
If it’s enabled,
TicketMutexGuard will be re-exported as
MutexGuard, otherwise the
SpinMutex and guard will be re-exported.
ticket_mutex is disabled by default.
A naïve spinning mutex.
A ticket-based mutex.
A spin-based lock providing mutually exclusive access to data.
A generic guard that will protect some data access and uses either a ticket lock or a normal spin mutex.