OWLNext 7.0
Borland's Object Windows Library for the modern age
|
This nested class handles locking and unlocking critical sections. More...
#include <owl/thread.h>
Public Member Functions | |
TLock (const TCriticalSection &) | |
Use system call to lock the CRITICAL_SECTION object. | |
~TLock () | |
Use system call to unlock the CRITICAL_SECTION object. | |
This nested class handles locking and unlocking critical sections.
Only one thread of execution will be allowed to execute the critical code inside function f at any one time.
|
inline |
Use system call to lock the CRITICAL_SECTION object.
Requests a lock on the TCriticalSection object. If no other Lock object holds a lock on that TCriticalSection object, the lock is allowed and execution continues. If another Lock object holds a lock on that object, the requesting thread is blocked until the lock is released.
Definition at line 1275 of file thread.h.
References CONST_CAST.
|
inline |
Use system call to unlock the CRITICAL_SECTION object.
Definition at line 1285 of file thread.h.
References CONST_CAST.