zephyr

Module sync

source
Expand description

Higher level synchronization primitives.

These are modeled after the synchronization primitives in std::sync and those from crossbeam-channel, in as much as it makes sense.

Modules§

Structs§

  • A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
  • Inspired by std::sync::Condvar, implemented directly using z_condvar in Zephyr.
  • A mutual exclusion primitive useful for protecting shared data.
  • An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (faslls out of scope), the lock will be unlocked.
  • A lower-level mutual exclusion primitive for protecting data.
  • An RAII implementation of a “scoped lock” of a SpinMutex. When this structure is dropped (falls out of scope), the lock will be unlocked.

Type Aliases§