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

Counted semaphore. Currently Win32 only. More...

#include <owl/thread.h>

Inheritance diagram for owl::TCountedSemaphore:
owl::TSemaphore

Public Member Functions

 TCountedSemaphore (int initialCount, int maxCount, LPCTSTR name=nullptr, LPSECURITY_ATTRIBUTES sa=nullptr)
 
 TCountedSemaphore (int initialCount, int maxCount, const tstring &name, LPSECURITY_ATTRIBUTES sa=nullptr)
 
 TCountedSemaphore (LPCTSTR name, bool inherit, uint32 access=SEMAPHORE_ALL_ACCESS)
 
 TCountedSemaphore (const tstring &name, bool inherit, uint32 access=SEMAPHORE_ALL_ACCESS)
 
 TCountedSemaphore (THandle handle)
 
- Public Member Functions inherited from owl::TSemaphore
virtual ~TSemaphore ()
 
 operator THandle () const
 

Additional Inherited Members

- Public Types inherited from owl::TSemaphore
enum  { NoWait = 0 , NoLimit = INFINITE }
 
typedef HANDLE THandle
 
- Protected Attributes inherited from owl::TSemaphore
THandle Handle
 Derived class must initialize.
 

Detailed Description

Counted semaphore. Currently Win32 only.

Definition at line 152 of file thread.h.

Constructor & Destructor Documentation

◆ TCountedSemaphore() [1/5]

owl::TCountedSemaphore::TCountedSemaphore ( int initialCount,
int maxCount,
LPCTSTR name = nullptr,
LPSECURITY_ATTRIBUTES sa = nullptr )
inline

Definition at line 1113 of file thread.h.

References owl::TSemaphore::Handle.

◆ TCountedSemaphore() [2/5]

owl::TCountedSemaphore::TCountedSemaphore ( int initialCount,
int maxCount,
const tstring & name,
LPSECURITY_ATTRIBUTES sa = nullptr )
inline

Definition at line 1123 of file thread.h.

References owl::TSemaphore::Handle.

◆ TCountedSemaphore() [3/5]

owl::TCountedSemaphore::TCountedSemaphore ( LPCTSTR name,
bool inherit,
uint32 access = SEMAPHORE_ALL_ACCESS )
inline

Definition at line 1129 of file thread.h.

References owl::TSemaphore::Handle.

◆ TCountedSemaphore() [4/5]

owl::TCountedSemaphore::TCountedSemaphore ( const tstring & name,
bool inherit,
uint32 access = SEMAPHORE_ALL_ACCESS )
inline

Definition at line 1138 of file thread.h.

References owl::TSemaphore::Handle.

◆ TCountedSemaphore() [5/5]

owl::TCountedSemaphore::TCountedSemaphore ( THandle handle)
inline

Definition at line 1144 of file thread.h.

References owl::TSemaphore::Handle.


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