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

PEnterAndLeave Class Reference

#include <critsec.h>

List of all members.

Public Methods

 PEnterAndLeave (PCriticalSection &_critSec, BOOL enter=TRUE)
 ~PEnterAndLeave ()

Protected Attributes

PCriticalSectioncritSec


Constructor & Destructor Documentation

PEnterAndLeave::PEnterAndLeave PCriticalSection   _critSec,
BOOL    enter = TRUE
[inline]
 

Create the critical section enter and leave instance. This will enter the critical section using the Enter()# function before returning.

Parameters:
enter  CriticalSection descendent to enter/leave. Enter before returning.

PEnterAndLeave::~PEnterAndLeave   [inline]
 

Leave the critical section. This will execute the Leave() function on the critical section that was used in the construction of this instance.


Member Data Documentation

PCriticalSection& PEnterAndLeave::critSec [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Aug 13 15:50:06 2004 for PWLib by doxygen1.2.18