Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

IPC::CritSec Class Reference

This class can be used to construct critical sections. More...

#include <ipcplus.h>

List of all members.

Public Methods

 CritSec (Mutex *pMutex)
 Constructor: Enter the critical section.

virtual ~CritSec ()
 Destructor: Leave the critical section.


Private Attributes

MutexpMut
 The mutex to use for the critical section.


Detailed Description

This class can be used to construct critical sections.

The intended use is to construct an CritSec object on the stack, which will block the current process until the associated mutex semaphore is raised. When the program flow leaves the scope in which the object was created, the associated mutex semaphore is released be the object's destructor.


The documentation for this class was generated from the following file:
Generated on Wed May 15 09:33:33 2002 for IPCPlus by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001