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

This nested class handles locking and unlocking critical sections. More...

#include <owl/thread.h>

Inheritance diagram for owl::TSync::TLock:
owl::TCriticalSection::TLock

Public Member Functions

 TLock (const TSync *)
 Locks the TCriticalSection object in the TSync object.
 

Detailed Description

This nested class handles locking and unlocking critical sections.

Definition at line 443 of file thread.h.

Constructor & Destructor Documentation

◆ TLock()

owl::TSync::TLock::TLock ( const TSync * sync)
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.

Definition at line 1330 of file thread.h.


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