Utility class to acquire a mutex at construction and release it when destroyed. More...
#include <XmlRpcMutex.h>
Public Member Functions | |
| AutoLock (XmlRpcMutex &m) | |
| Acquire the mutex at construction. | |
| ~AutoLock () | |
| Release at destruction. | |
Public Attributes | |
| XmlRpcMutex & | _m |
| The mutex being held. | |
Utility class to acquire a mutex at construction and release it when destroyed.
Definition at line 34 of file XmlRpcMutex.h.
| XmlRpc::XmlRpcMutex::AutoLock::AutoLock | ( | XmlRpcMutex & | m | ) | [inline] |
Acquire the mutex at construction.
Definition at line 36 of file XmlRpcMutex.h.
| XmlRpc::XmlRpcMutex::AutoLock::~AutoLock | ( | ) | [inline] |
The mutex being held.
Definition at line 40 of file XmlRpcMutex.h.
Referenced by AutoLock(), and ~AutoLock().
1.7.1