#include <EventSemaphore.hpp>
Inheritance diagram for corelinux::EventSemaphore::
Public Methods | |
EventSemaphore (SemaphoreGroupPtr aGroup, SemaphoreIdentifierRef aIdentifier, Counter aLimit, bool aRecursionFlag=true, bool aBalkingFlag=false) throw ( NullPointerException ) | |
Default constructor requires the identifier of the semaphore in the semaphore group. More... | |
virtual | ~EventSemaphore (void) |
Virtual Destructor. | |
virtual bool | isLocked (void) |
Check if semaphore instance is locked. | |
SemaphoreOperationStatus | post (void) throw ( SemaphoreException ) |
Indicate owner commitment to trigger the event after a finite amount of time. | |
virtual SemaphoreOperationStatus | lockWithWait (void) throw ( SemaphoreException ) |
Wait for the event associated with this semaphore to take place. More... | |
virtual SemaphoreOperationStatus | lockWithNoWait (void) throw ( SemaphoreException ) |
Check if the associated event has taken place. | |
virtual SemaphoreOperationStatus | release (void) throw ( SemaphoreException ) |
Signal the observer that an event has occured. | |
virtual void | setLimit (Counter aLimit) throw ( SemaphoreException ) |
Set the maximum number of listeners allowed on this semaphore. More... | |
virtual Counter | getLimit (void) const |
Get the maximum number of listeners of this semaphore. | |
Protected Methods | |
EventSemaphore (void) throw ( Assertion ) | |
Default constructor throws assert. | |
EventSemaphore (EventSemaphoreCref) throw ( Assertion ) | |
Copy constructor throws assertion. | |
EventSemaphoreRef | operator= (EventSemaphoreCref) throw ( Assertion ) |
Assignment operator throws assertion. |
|
Default constructor requires the identifier of the semaphore in the semaphore group.
|
|
Wait for the event associated with this semaphore to take place. Block if the event has not occured Reimplemented from corelinux::AbstractSemaphore. |
|
Set the maximum number of listeners allowed on this semaphore.
|