OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TCriticalSection Class Reference

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
 

Detailed Description

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.

Definition at line 308 of file thread.h.

Member Typedef Documentation

◆ Lock

For compatibility with old T-less typename.

Definition at line 334 of file thread.h.

Constructor & Destructor Documentation

◆ TCriticalSection()

owl::TCriticalSection::TCriticalSection ( )
inline

Use system call to initialize the CRITICAL_SECTION object.

Definition at line 1254 of file thread.h.

References CONST_CAST.

◆ ~TCriticalSection()

owl::TCriticalSection::~TCriticalSection ( )
inline

Use system call to destroy the CRITICAL_SECTION object.

Definition at line 1262 of file thread.h.

References CONST_CAST.

Friends And Related Symbol Documentation

◆ TLock

friend class TLock
friend

Definition at line 333 of file thread.h.


The documentation for this class was generated from the following file: