Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

PEnterAndLeave Class Reference

#include <critsec.h>

List of all members.

Public Member Functions

 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 Sat Jul 24 15:35:58 2004 for PWLib by doxygen 1.3.7