#include <pcriticalsection.h>
Public Member Functions | |
| CriticalSection () throw () | |
| Constructor. | |
| ~CriticalSection () throw () | |
| Destructor. | |
| void | lock () throw () |
| Lock the critical section. | |
| bool | tryLock () throw () |
| Try locking the critical section. | |
| void | unlock () throw () |
| Unlock the critical section. | |
Critical section objects provide synchronization similar to that provided by mutex objects, except that critical section objects can be used only by the threads of a single process, and they are slightly faster.
Definition at line 36 of file pcriticalsection.h.
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Lock the critical section. Tries to lock the critical section, if another thread currently owns the critical section, the caller will block until the critical section becomes available. Referenced by P::CriticalSection::Lock::operator=(). |
|
|
Try locking the critical section.
|
|
|
Unlock the critical section.
|
1.3.3