|
sipxportlib
Version 3.3
|
Binary semaphore. More...
#include <OsBSem.h>


Public Types | |
| enum | InitialSemaphoreState { EMPTY = 0, FULL = 1 } |
| 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... | |
| virtual void | OsBSemShow (void)=0 |
| Print semaphore information to the console. More... | |
Public Member Functions inherited from OsSyncBase | |
| virtual | ~OsSyncBase () |
| Destructor. More... | |
| OsSyncBase & | operator= (const OsSyncBase &rhs) |
| Assignment operator. More... | |
Protected Member Functions | |
| OsBSemBase () | |
| Default constructor. More... | |
| virtual | ~OsBSemBase () |
| Destructor. More... | |
Protected Member Functions inherited from OsSyncBase | |
| OsSyncBase () | |
| Default constructor. More... | |
Protected Attributes | |
| int | mOptions |
| options specified at time of binary semaphore creation More... | |
| int | mTaskId |
| if OS_SYNC_DEBUG is enabled, ONLY ON WNT, we use this < variable to store the ID of the task currently holding the semaphore More... | |
Binary semaphore.
| enum QueueOptions |
|
inlineprotected |
Default constructor.
|
inlineprotectedvirtual |
Destructor.
|
pure virtual |
Block the task until the semaphore is acquired or the timeout expires.
Implements OsSyncBase.
Implemented in OsBSemWnt, and OsBSemLinux.
|
pure virtual |
Conditionally acquire the semaphore (i.e., don't block)
Implements OsSyncBase.
Implemented in OsBSemWnt, and OsBSemLinux.
|
pure virtual |
Release the semaphore.
Implements OsSyncBase.
Implemented in OsBSemWnt, and OsBSemLinux.
|
pure virtual |
Print semaphore information to the console.
Implemented in OsBSemWnt, and OsBSemLinux.
|
protected |
options specified at time of binary semaphore creation
|
protected |
if OS_SYNC_DEBUG is enabled, ONLY ON WNT, we use this < variable to store the ID of the task currently holding the semaphore
1.8.11