|
ONPOSIX
2.0
|
Class to simplify locking and unlocking of PosixMutex. More...
#include <PosixMutex.hpp>
Public Member Functions | |
| MutexLocker (PosixMutex &mutex) | |
| ~MutexLocker () | |
Private Attributes | |
| PosixMutex & | mutex_ |
Class to simplify locking and unlocking of PosixMutex.
This is a convenience class that simplifies locking and unlocking PosixMutex(es) making use of the RAII idiom: the lock is acquired in the constructor and released in the destructor.
Definition at line 72 of file PosixMutex.hpp.
|
inline |
|
inline |
|
private |
Definition at line 74 of file PosixMutex.hpp.