Module fair_mutex

Source

Functions§

const_fair_mutex
Creates a new fair mutex in an unlocked state ready for use.

Type Aliases§

FairMutex
A mutual exclusive primitive that is always fair, useful for protecting shared data
FairMutexGuard
An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
MappedFairMutexGuard
An RAII mutex guard returned by FairMutexGuard::map, which can point to a subfield of the protected data.