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