OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Lightweight intra-process thread synchronization. More...
#include <owl/thread.h>
Classes | |
class | TLock |
This nested class handles locking and unlocking critical sections. More... | |
Public Types | |
typedef TLock | Lock |
For compatibility with old T-less typename. | |
Public Member Functions | |
TCriticalSection () | |
Use system call to initialize the CRITICAL_SECTION object. | |
~TCriticalSection () | |
Use system call to destroy the CRITICAL_SECTION object. | |
Friends | |
class | TLock |
Lightweight intra-process thread synchronization.
Can only be used with other critical sections, and only within the same process. TCriticalSection provides a system-independent interface to critical sections in threads. TCriticalSection objects can be used in conjunction with TCriticalSection::Lock objects to guarantee that only one thread can be executing any of the code sections protected by the lock at any given time.
|
inline |
Use system call to initialize the CRITICAL_SECTION object.
Definition at line 1254 of file thread.h.
References CONST_CAST.
|
inline |
Use system call to destroy the CRITICAL_SECTION object.
Definition at line 1262 of file thread.h.
References CONST_CAST.