Skip to main content

Module sync

Module sync 

Source
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.
BinSemProp
Properties of a binary semaphore, returned by BinSem::get_info.
CondVar
A condition variable, for more complex synchronization with a Mutex.
CondVarProp
Properties of a condition variable, returned by CondVar::get_info.
CountSem
A counting semaphore.
CountSemProp
Properties of a counting semaphore, returned by CountSem::get_info.
Mutex
A mutual exclusion primitive useful for protecting shared data.
MutexGuard
An RAII implementation of a scoped lock for a mutex.
MutexProp
Properties of a mutex, returned by Mutex::get_info.

Enums§

SemState
Initial state of a binary semaphore.