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

PCriticalSection Class Reference

#include <critsec.h>

Inheritance diagram for PCriticalSection:

PObject List of all members.

Public Member Functions

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 Wed Sep 28 10:27:35 2005 for PWLib by  doxygen 1.4.4