Expand description
Safe, idiomatic wrappers for OSAL synchronization primitives.
This module provides safe wrappers for Mutexes, Binary Semaphores, and Counting Semaphores. It uses RAII guards for mutexes to ensure they are always released, preventing deadlocks.
Structs§
- BinSem
- A binary semaphore, often used for signaling between tasks.
- BinSem
Prop - Properties of a binary semaphore, returned by
BinSem::get_info. - CondVar
- A condition variable, for more complex synchronization with a
Mutex. - Cond
VarProp - Properties of a condition variable, returned by
CondVar::get_info. - Count
Sem - A counting semaphore.
- Count
SemProp - Properties of a counting semaphore, returned by
CountSem::get_info. - Mutex
- A mutual exclusion primitive useful for protecting shared data.
- Mutex
Guard - An RAII implementation of a scoped lock for a mutex.
- Mutex
Prop - Properties of a mutex, returned by
Mutex::get_info.
Enums§
- SemState
- Initial state of a binary semaphore.