XmlRpc::XmlRpcMutex::XmlRpcMutex::AutoLock Struct Reference

Utility class to acquire a mutex at construction and release it when destroyed. More...

#include <XmlRpcMutex.h>

List of all members.

Public Member Functions

 AutoLock (XmlRpcMutex &m)
 Acquire the mutex at construction.
 ~AutoLock ()
 Release at destruction.

Public Attributes

XmlRpcMutex_m
 The mutex being held.


Detailed Description

Utility class to acquire a mutex at construction and release it when destroyed.

Definition at line 34 of file XmlRpcMutex.h.


Constructor & Destructor Documentation

XmlRpc::XmlRpcMutex::XmlRpcMutex::AutoLock::AutoLock ( XmlRpcMutex m  )  [inline]

Acquire the mutex at construction.

Definition at line 36 of file XmlRpcMutex.h.

00036 : _m(m) { _m.acquire(); }

XmlRpc::XmlRpcMutex::XmlRpcMutex::AutoLock::~AutoLock (  )  [inline]

Release at destruction.

Definition at line 38 of file XmlRpcMutex.h.

00038 { _m.release(); }


Member Data Documentation

XmlRpcMutex& XmlRpc::XmlRpcMutex::XmlRpcMutex::AutoLock::_m


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

Generated on Tue Sep 8 17:27:03 2009 for OverSim by  doxygen 1.5.8