|
libcosmos
Linux C++ System Programming Library
|
A lock-guard object that locks an RWLock for reading until it is destroyed. More...
#include <RWLock.hxx>
Inheritance diagram for cosmos::ReadLockGuard:Public Member Functions | |
| ReadLockGuard (const RWLock &rwl) | |
Public Member Functions inherited from cosmos::ResourceGuard< const RWLock & > | |
| ResourceGuard (const ResourceGuard &)=delete | |
| ResourceGuard (const RWLock &r, std::function< CleanFunc > cleaner) | |
| ResourceGuard & | operator= (const ResourceGuard &)=delete |
| void | disarm () |
Additional Inherited Members | |
Public Types inherited from cosmos::ResourceGuard< const RWLock & > | |
| using | CleanFunc |
Protected Attributes inherited from cosmos::ResourceGuard< const RWLock & > | |
| bool | m_disarmed |
| const RWLock & | m_res |
| std::function< CleanFunc > | m_cleaner |
A lock-guard object that locks an RWLock for reading until it is destroyed.
Definition at line 69 of file RWLock.hxx.
|
inlineexplicit |
Definition at line 72 of file RWLock.hxx.