Contains the base functionality for a semaphore.
More...
#include <esynch.h>
Contains the base functionality for a semaphore.
◆ ESemaphoreBase()
ESemaphoreBase::ESemaphoreBase |
( |
| ) |
|
|
inline |
◆ ~ESemaphoreBase()
ESemaphoreBase::~ESemaphoreBase |
( |
| ) |
|
|
inline |
◆ currCount()
Long ESemaphoreBase::currCount |
( |
| ) |
|
|
inline |
Retrieves the current semaphore value.
- Returns
- the current semaphore value.
◆ Decrement()
Bool ESemaphoreBase::Decrement |
( |
Bool |
wait = True | ) |
|
|
inline |
Decrements the semaphore value.
- Parameters
-
wait | indicates if the this method will block until the semaphore value is greater than zero. |
- Returns
- True indicates that the semaphore value was successfully decremented, otherwise False.
◆ destroy()
virtual Void ESemaphoreBase::destroy |
( |
| ) |
|
|
pure virtual |
◆ Increment()
Bool ESemaphoreBase::Increment |
( |
| ) |
|
|
inline |
Increments the semaphore value.
- Returns
- True indicates that the semaphore value was successfully decremented, otherwise False.
◆ init()
virtual Void ESemaphoreBase::init |
( |
Long |
initcnt | ) |
|
|
pure virtual |
Initializes the semaphore data. This method must be overloaded in a derived class.
- Parameters
-
initcnt | the initial count for the semaphore. |
Implemented in ESemaphorePublic, and ESemaphorePrivate.
◆ initialCount()
Long& ESemaphoreBase::initialCount |
( |
| ) |
|
|
inline |
Retrieves the initial semaphore value.
- Returns
- the initial semaphore value.
◆ initialized()
Bool ESemaphoreBase::initialized |
( |
| ) |
|
|
inline |
Indicates the initialization status for this object.
- Returns
- True indicates the object is initialized, otherwise False.
◆ operator ESemaphoreData &()
Retrieves a reference to the underlying semaphore data.
- Returns
- a reference to the underlying semaphore data.
◆ shared()
Bool& ESemaphoreBase::shared |
( |
| ) |
|
|
inline |
Indicates if this object is to be shared between processes.
- Returns
- True semaphore is to be shared, otherwise False.
The documentation for this class was generated from the following file:
- /home/vagrant/share/code/epctools/include/epc/esynch.h