Expand description

A convenience import: imports all lock and guard types from std::sync. Replace prelude_std by prelude to import their equivalent types from no_deadlocks instead.

Structs

  • A Condition Variable
  • 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.
  • A reader-writer lock
  • RAII structure used to release the shared read access of a lock when dropped.
  • RAII structure used to release the exclusive write access of a lock when dropped.