OverSim
|
A simple platform-independent mutex API implemented for posix and windows. More...
#include <XmlRpcMutex.h>
Classes | |
struct | AutoLock |
Utility class to acquire a mutex at construction and release it when destroyed. More... |
Public Member Functions | |
XmlRpcMutex () | |
Construct a Mutex object. | |
~XmlRpcMutex () | |
Destroy a Mutex object. | |
void | acquire () |
Wait for the mutex to be available and then acquire the lock. | |
void | release () |
Release the mutex. |
Private Attributes | |
void * | _pMutex |
Native Mutex object. |
A simple platform-independent mutex API implemented for posix and windows.
Definition at line 19 of file XmlRpcMutex.h.
|
inline |
XmlRpc::XmlRpcMutex::~XmlRpcMutex | ( | ) |
Destroy a Mutex object.
void XmlRpc::XmlRpcMutex::acquire | ( | ) |
Wait for the mutex to be available and then acquire the lock.
Referenced by XmlRpc::XmlRpcMutex::AutoLock::AutoLock().
void XmlRpc::XmlRpcMutex::release | ( | ) |
Release the mutex.
Referenced by XmlRpc::XmlRpcMutex::AutoLock::~AutoLock().
|
private |
Native Mutex object.
Definition at line 46 of file XmlRpcMutex.h.