EpcTools
An event based multi-threaded C++ development framework.
|
Represents a private semaphore, the semaphore data is allocated from either the stack or heap. More...
#include <esynch.h>
Public Member Functions | |
ESemaphorePrivate (Long initcnt=0, Bool bInit=True) | |
Class constructor. More... | |
~ESemaphorePrivate () | |
Class destructor. More... | |
Void | init (Long initcnt) |
Initializes the data associated with the semaphore. More... | |
Void | destroy () |
Destroys the data associated with the semaphore. More... | |
![]() | |
ESemaphoreBase () | |
Default constructor. More... | |
~ESemaphoreBase () | |
Class desctructor. More... | |
Bool | Decrement (Bool wait=True) |
Decrements the semaphore value. More... | |
Bool | Increment () |
Increments the semaphore value. More... | |
Bool | initialized () |
Indicates the initialization status for this object. More... | |
Bool & | shared () |
Indicates if this object is to be shared between processes. More... | |
Long & | initialCount () |
Retrieves the initial semaphore value. More... | |
Long | currCount () |
Retrieves the current semaphore value. More... | |
operator ESemaphoreData & () | |
Retrieves a reference to the underlying semaphore data. More... | |
Represents a private semaphore, the semaphore data is allocated from either the stack or heap.
|
inline |
Class constructor.
initcnt | the initial count for the semaphore. |
bInit | directs the constructor to initialize the semaphore. |
|
inline |
Class destructor.
|
inlinevirtual |
Destroys the data associated with the semaphore.
Implements ESemaphoreBase.
|
inlinevirtual |
Initializes the data associated with the semaphore.
initcnt | the initial count for the semaphore. |
Implements ESemaphoreBase.