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