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

Base class for handle-based thread synchronization classes, TMutex, TCountedSemaphore and TEventSemaphore. More...

#include <owl/thread.h>

Inheritance diagram for owl::TSemaphore:
owl::TCountedSemaphore owl::TEventSemaphore owl::TMutex owl::TWaitableTimer

Classes

class  TLock
 

Public Types

enum  { NoWait = 0 , NoLimit = INFINITE }
 
typedef HANDLE THandle
 

Public Member Functions

virtual ~TSemaphore ()
 
 operator THandle () const
 

Protected Member Functions

virtual void Release ()=0
 Derived class must provide release.
 

Protected Attributes

THandle Handle
 Derived class must initialize.
 

Friends

class TLock
 
class TSemaphoreSet
 

Detailed Description

Base class for handle-based thread synchronization classes, TMutex, TCountedSemaphore and TEventSemaphore.

Defines some types & constants, as well as holding the system object handle for Win32.

Definition at line 65 of file thread.h.

Member Typedef Documentation

◆ THandle

Definition at line 70 of file thread.h.

Member Enumeration Documentation

◆ anonymous enum

Enumerator
NoWait 
NoLimit 

Definition at line 69 of file thread.h.

Constructor & Destructor Documentation

◆ ~TSemaphore()

owl::TSemaphore::~TSemaphore ( )
inlinevirtual

Definition at line 986 of file thread.h.

References Handle.

Member Function Documentation

◆ operator THandle()

owl::TSemaphore::operator TSemaphore::THandle ( ) const
inline

Definition at line 992 of file thread.h.

References Handle.

◆ Release()

virtual void owl::TSemaphore::Release ( )
protectedpure virtual

Derived class must provide release.

Implemented in owl::TWaitableTimer.

Friends And Related Symbol Documentation

◆ TLock

friend class TLock
friend

Definition at line 89 of file thread.h.

◆ TSemaphoreSet

Definition at line 90 of file thread.h.

Member Data Documentation

◆ Handle

THandle owl::TSemaphore::Handle
protected

Derived class must initialize.

Definition at line 95 of file thread.h.


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