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 TSync *) | |
Locks the TCriticalSection object in the TSync object. | |
This nested class handles locking and unlocking critical sections.
|
inline |
Locks the TCriticalSection object in the TSync object.
Requests a lock on the critical section of the TSync object pointed to by s. 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.