sipxportlib
Version 3.3
|
Counting semaphore. More...
#include <OsCSem.h>
Public Types | |
enum | QueueOptions { Q_FIFO = 0x0, Q_PRIORITY = 0x1 } |
Public Member Functions | |
virtual OsStatus | acquire (const OsTime &rTimeout=OsTime::OS_INFINITY)=0 |
Block the task until the semaphore is acquired or the timeout expires. More... | |
virtual OsStatus | tryAcquire (void)=0 |
Conditionally acquire the semaphore (i.e., don't block) More... | |
virtual OsStatus | release (void)=0 |
Release the semaphore. More... | |
Public Member Functions inherited from OsSyncBase | |
virtual | ~OsSyncBase () |
Destructor. More... | |
OsSyncBase & | operator= (const OsSyncBase &rhs) |
Assignment operator. More... | |
Protected Member Functions | |
OsCSemBase (const int queueOptions, const int maxCount, const int initCount) | |
Default constructor. More... | |
virtual | ~OsCSemBase () |
Destructor. More... | |
Protected Member Functions inherited from OsSyncBase | |
OsSyncBase () | |
Default constructor. More... | |
Counting semaphore.
enum QueueOptions |
|
protected |
Default constructor.
|
inlineprotectedvirtual |
Destructor.
|
pure virtual |
Block the task until the semaphore is acquired or the timeout expires.
Implements OsSyncBase.
Implemented in OsCSemWnt, and OsCSemLinux.
|
pure virtual |
Conditionally acquire the semaphore (i.e., don't block)
Implements OsSyncBase.
Implemented in OsCSemWnt, and OsCSemLinux.
|
pure virtual |
Release the semaphore.
Implements OsSyncBase.
Implemented in OsCSemWnt, and OsCSemLinux.