OverSim
XmlRpc::XmlRpcMutex Class Reference

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.

Detailed Description

A simple platform-independent mutex API implemented for posix and windows.

Definition at line 19 of file XmlRpcMutex.h.

Constructor & Destructor Documentation

XmlRpc::XmlRpcMutex::XmlRpcMutex ( )
inline

Construct a Mutex object.

Definition at line 22 of file XmlRpcMutex.h.

: _pMutex(0) {}
XmlRpc::XmlRpcMutex::~XmlRpcMutex ( )

Destroy a Mutex object.

Member Function Documentation

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().

Member Data Documentation

void* XmlRpc::XmlRpcMutex::_pMutex
private

Native Mutex object.

Definition at line 46 of file XmlRpcMutex.h.


The documentation for this class was generated from the following file: