#include <critsec.h>
Public Member Functions | |
Construction | |
PCriticalSection () | |
PCriticalSection (const PCriticalSection &) | |
~PCriticalSection () | |
Operations | |
void | Wait () |
void | Enter () |
void | Signal () |
void | Leave () |
PCriticalSection::PCriticalSection | ( | ) |
Create a new critical section object .
PCriticalSection::PCriticalSection | ( | const PCriticalSection & | ) |
PCriticalSection::~PCriticalSection | ( | ) |
Destroy the critical section object
void PCriticalSection::Wait | ( | ) | [virtual] |
Enter the critical section by waiting for exclusive access.
Implements PSync.
void PCriticalSection::Enter | ( | ) | [inline] |
void PCriticalSection::Signal | ( | ) | [virtual] |
Leave the critical section by unlocking the mutex
Implements PSync.
void PCriticalSection::Leave | ( | ) | [inline] |