Module parking_lot::fair_mutex

source ·

Functions§

Type Aliases§

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