Object lifetime scoped mutex object or interface lock with unlock. More...
#include <mutex.hxx>
Public Member Functions | |
| ClearableGuard (T *pT_) | |
| Acquires the object specified as parameter. | |
| ClearableGuard (T &t) | |
| Acquires the object specified as parameter. | |
| ~ClearableGuard () | |
| Releases the mutex or interface if not already released by clear(). | |
| void | clear () |
| Releases the mutex or interface. | |
Protected Attributes | |
| T * | pT |
Object lifetime scoped mutex object or interface lock with unlock.
Use this if you can't use scoped code blocks and Guard.
|
inline |
Acquires the object specified as parameter.
|
inline |
Acquires the object specified as parameter.
|
inline |
Releases the mutex or interface if not already released by clear().
|
inline |
Releases the mutex or interface.
|
protected |