PCriticalSection Class Reference

#include <critsec.h>

Inheritance diagram for PCriticalSection:

PSync PObject

List of all members.

Public Member Functions

Construction
 PCriticalSection ()
 PCriticalSection (const PCriticalSection &)
 ~PCriticalSection ()
Operations
void Wait ()
void Enter ()
void Signal ()
void Leave ()
PObjectClone () const


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

PCriticalSection::PCriticalSection (  ) 

Create a new critical section object .

Referenced by Clone().

PCriticalSection::PCriticalSection ( const PCriticalSection  ) 

PCriticalSection::~PCriticalSection (  ) 

Destroy the critical section object


Member Function Documentation

void PCriticalSection::Wait (  )  [virtual]

Enter the critical section by waiting for exclusive access.

Implements PSync.

Referenced by Enter().

void PCriticalSection::Enter (  )  [inline]

References Wait().

void PCriticalSection::Signal (  )  [virtual]

Leave the critical section by unlocking the mutex

Implements PSync.

Referenced by Leave().

void PCriticalSection::Leave (  )  [inline]

References Signal().

PObject* PCriticalSection::Clone (  )  const [inline, virtual]

Create a new PCriticalSection

Reimplemented from PObject.

References PCriticalSection().


The documentation for this class was generated from the following file:

Generated on Fri Feb 29 13:37:11 2008 for PWLib by  doxygen 1.5.5