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

PCriticalSection Class Reference

#include <critsec.h>

Inheritance diagram for PCriticalSection:

PObject List of all members.

Public Methods

Construction
PINLINE PCriticalSection ()
PINLINE ~PCriticalSection ()
Operations
PINLINE void Enter ()
PINLINE void Leave ()

Detailed Description

This class implements critical section mutexes using the most efficient mechanism available on the host platform. For Windows, CriticalSection is used. On other platforms, the sem_wait call is used.


Constructor & Destructor Documentation

PINLINE PCriticalSection::PCriticalSection  
 

Create a new critical section object .

PINLINE PCriticalSection::~PCriticalSection  
 

Destroy the critical section object


Member Function Documentation

PINLINE void PCriticalSection::Enter  
 

Enter the critical section by waiting for exclusive access.

PINLINE void PCriticalSection::Leave  
 

Leave the critical section by unlocking the mutex


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