XmlRpc::XmlRpcMutex::AutoLock Struct Reference

#include <XmlRpcMutex.h>

List of all members.


Detailed Description

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

Public Member Functions

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

Public Attributes

XmlRpcMutex_m
 The mutex being held.

Constructor & Destructor Documentation

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

Acquire the mutex at construction.

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

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

Release at destruction.

00032 { _m.release(); }


Member Data Documentation

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

The mutex being held.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 17 13:19:31 2008 for ITM OverSim by  doxygen 1.5.3