PWLib
1.10.10
|
#include <critsec.h>
Public Member Functions | |
Construction | |
PCriticalSection () | |
PCriticalSection (const PCriticalSection &) | |
~PCriticalSection () | |
Operations | |
void | Wait () |
void | Enter () |
void | Signal () |
void | Leave () |
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.
Create a new critical section object .
PCriticalSection::PCriticalSection | ( | const PCriticalSection & | ) |
Destroy the critical section object
void PCriticalSection::Enter | ( | ) | [inline] |
References Wait().
void PCriticalSection::Leave | ( | ) | [inline] |
References Signal().
void PCriticalSection::Signal | ( | ) | [virtual] |
void PCriticalSection::Wait | ( | ) | [virtual] |