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§
- Re-export portable atomic.
- Close-to-Zephyr channels
Structs§
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- Inspired by
std::sync::Condvar
, implemented directly usingz_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§
- Until poisoning is implemented, mutexes never return an error, and we just get back the guard.
- The return type from
Mutex::try_lock
.