BLOCXX_NAMESPACE::IPCMutexLock Class Reference

A class to simplify the use of IPCMutex, and make it exception safe. More...

#include <IPCMutex.hpp>

List of all members.

Public Member Functions

 IPCMutexLock (IPCMutex &sem)
 ~IPCMutexLock ()

Private Attributes

IPCMutexm_sem


Detailed Description

A class to simplify the use of IPCMutex, and make it exception safe.

Example:

IPCMutex guard(1234); { IPCMutexLock mlock(guard); // critical section code; }

Note that you don't have to keep guard around, just use the same key value each time.

Definition at line 124 of file IPCMutex.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::IPCMutexLock::IPCMutexLock ( IPCMutex sem  ) 

Definition at line 113 of file IPCMutex.cpp.

References m_sem, and BLOCXX_NAMESPACE::IPCMutex::wait().

BLOCXX_NAMESPACE::IPCMutexLock::~IPCMutexLock (  ) 

Definition at line 120 of file IPCMutex.cpp.

References m_sem, and BLOCXX_NAMESPACE::IPCMutex::signal().


Member Data Documentation

Definition at line 130 of file IPCMutex.hpp.

Referenced by IPCMutexLock(), and ~IPCMutexLock().


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

Generated on Wed Feb 25 19:05:06 2009 for blocxx by  doxygen 1.5.6