EtcPal
HEAD (unstable)
ETC Platform Abstraction Layer (EtcPal)
|
View other versions:
|
Lock guard around a recursive mutex.
Lock is taken when this class is instantiated, and released when it goes out of scope. Example usage:
Public Member Functions | |
RecursiveMutexGuard (RecursiveMutex &mutex) | |
Lock an etcpal::RecursiveMutex. More... | |
RecursiveMutexGuard (etcpal_recursive_mutex_t &mutex) | |
Lock an etcpal_recursive_mutex_t. More... | |
~RecursiveMutexGuard () | |
Release the lock upon going out-of-scope. | |
RecursiveMutexGuard (const RecursiveMutexGuard &other)=delete | |
RecursiveMutexGuard & | operator= (const RecursiveMutexGuard &other)=delete |
RecursiveMutexGuard (RecursiveMutexGuard &&other)=delete | |
RecursiveMutexGuard & | operator= (RecursiveMutexGuard &&other)=delete |
|
inlineexplicit |
Lock an etcpal::RecursiveMutex.
std::runtime_error | if locking the mutex failed. |
|
inlineexplicit |
Lock an etcpal_recursive_mutex_t.
std::runtime_error | if locking the mutex failed. |