Module lock_api::mutex

source ·

Structs§

  • An RAII mutex guard returned by MutexGuard::map, which can point to a subfield of the protected data.
  • A mutual exclusion primitive 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.

Traits§

  • Basic operations for a mutex.
  • Additional methods for mutexes which support fair unlocking.
  • Additional methods for mutexes which support locking with timeouts.