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

#include <owl/thread.h>

Public Member Functions

 TLock (const TSemaphore &, ulong timeOut=NoLimit, bool alertable=false)
 
 ~TLock ()
 
bool WasAquired () const
 See if really aquired, or just timed-out.
 
void Release (bool relinquish=false)
 Release lock early & relinquish, i.e.
 

Detailed Description

Definition at line 74 of file thread.h.

Constructor & Destructor Documentation

◆ TLock()

owl::TSemaphore::TLock::TLock ( const TSemaphore & sem,
ulong timeOut = NoLimit,
bool alertable = false )
inline

Definition at line 998 of file thread.h.

◆ ~TLock()

owl::TSemaphore::TLock::~TLock ( )
inline

Definition at line 1007 of file thread.h.

References owl::TSemaphore::Release().

Member Function Documentation

◆ Release()

void owl::TSemaphore::TLock::Release ( bool relinquish = false)
inline

Release lock early & relinquish, i.e.

before destructor. Or, just drop the lock count on an exiting semaphore & keep locked 'til dtor

Definition at line 1021 of file thread.h.

References CONST_CAST.

◆ WasAquired()

bool owl::TSemaphore::TLock::WasAquired ( ) const
inline

See if really aquired, or just timed-out.

Definition at line 1013 of file thread.h.


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