EtcPal
0.3.0
ETC Platform Abstraction Layer (EtcPal)
|
View other versions:
|
C++ utilities for the lock (Locks and Synchronization) module.
Provides C++ wrappers for mutexes (Mutex), signals (Signal) and read-write locks (RwLock). Also provides RAII guard classes for these types (MutexGuard, ReadGuard, WriteGuard), which should be the primary constructs used to interact with the mutual-exclusion classes.
These classes are similar to std::mutex, std::condition_variable, and std::shared_mutex, with the key advantage that they will work on any threaded platform that EtcPal is ported for, including the embedded RTOS platforms. If your application or library does not need to run on these platforms, consider using the STL versions instead.
Data Structures | |
class | Mutex |
A wrapper class for the EtcPal mutex type. More... | |
class | Signal |
A wrapper class for the EtcPal signal type. More... | |
class | RwLock |
A wrapper class for the EtcPal read-write lock type. More... | |
class | Semaphore |
A wrapper class for the EtcPal counting semaphore type. More... | |
class | MutexGuard |
Lock guard around a mutex. More... | |
class | ReadGuard |
Read lock guard around a read-write lock. More... | |
class | WriteGuard |
Write lock guard around a read-write lock. More... | |