OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TSync provides a system-independent interface to build classes that act like monitors, i.e., classes in which only one member can execute on a particular instance at any one time. More...
#include <owl/thread.h>
Classes | |
class | TLock |
This nested class handles locking and unlocking critical sections. More... | |
Protected Types | |
typedef TLock | Lock |
For compatibility with old T-less typename. | |
Protected Member Functions | |
TSync () | |
Default constructor. | |
TSync (const TSync &) | |
Copy constructor does not copy the TCriticalSection object, since the new object is not being used in any of its own member functions. | |
const TSync & | operator= (const TSync &) |
Does not copy the TCriticalSection object, since the new object is not being used in any of its own member functions. | |
Friends | |
class | TLock |
TSync provides a system-independent interface to build classes that act like monitors, i.e., classes in which only one member can execute on a particular instance at any one time.
TSync uses TCriticalSection, so it is portable to all platforms that TCriticalSection has been ported to.
Example
|
protected |
|
inlineprotected |
|
inlineprotected |
Copy constructor does not copy the TCriticalSection object, since the new object is not being used in any of its own member functions.
This means that the new object must start in an unlocked state.
Does not copy the TCriticalSection object, since the new object is not being used in any of its own member functions.
This means that the new object must start in an unlocked state.