|
libcosmos
Linux C++ System Programming Library
|
A reversed mutex guard object that unlocks a Mutex for the lifetime of the guard object. More...
#include <Mutex.hxx>
Inheritance diagram for cosmos::MutexReverseGuard:Public Member Functions | |
| MutexReverseGuard (const Mutex &m) | |
Public Member Functions inherited from cosmos::ResourceGuard< const Mutex & > | |
| ResourceGuard (const ResourceGuard &)=delete | |
| ResourceGuard (const Mutex &r, std::function< CleanFunc > cleaner) | |
| ResourceGuard & | operator= (const ResourceGuard &)=delete |
| void | disarm () |
Additional Inherited Members | |
Public Types inherited from cosmos::ResourceGuard< const Mutex & > | |
| using | CleanFunc |
Protected Attributes inherited from cosmos::ResourceGuard< const Mutex & > | |
| bool | m_disarmed |
| const Mutex & | m_res |
| std::function< CleanFunc > | m_cleaner |
A reversed mutex guard object that unlocks a Mutex for the lifetime of the guard object.
|
inlineexplicit |