EtcPal
HEAD (unstable)
ETC Platform Abstraction Layer (EtcPal)
|
View other versions:
|
Write lock guard around a read-write lock.
Write lock is taken when this class is instantiated, and released when it goes out of scope. Example usage:
Public Member Functions | |
WriteGuard (RwLock &rwlock) | |
Lock an etcpal::RwLock for writing. More... | |
WriteGuard (etcpal_rwlock_t &rwlock) | |
Lock an etcpal_rwlock_t for writing. More... | |
~WriteGuard () | |
Release the write lock upon going out-of-scope. | |
WriteGuard (const WriteGuard &other)=delete | |
WriteGuard & | operator= (const WriteGuard &other)=delete |
WriteGuard (WriteGuard &&other)=delete | |
WriteGuard & | operator= (WriteGuard &&other)=delete |
|
inlineexplicit |
Lock an etcpal::RwLock for writing.
std::runtime_error | if getting a write lock failed. |
|
inlineexplicit |
Lock an etcpal_rwlock_t for writing.
std::runtime_error | if getting a write lock failed. |