1 #if !defined(__EVENTSEMAPHORE_HPP)
2 #define __EVENTSEMAPHORE_HPP
24 #if !defined(__COMMON_HPP)
28 #if !defined(__SEMAPHORE_HPP)
29 #include <Semaphore.hpp>
34 DECLARE_CLASS( EventSemaphore );
67 bool aRecursionFlag =
true,
68 bool aBalkingFlag =
false
133 virtual Counter
getLimit (
void )
const;
160 Counter theNumListeners;
164 Counter theMaxListeners;
169 #endif // if !defined(__EVENTSEMAPHORE_HPP)
EventSemaphore(void)
Default constructor throws assert.
Definition: EventSemaphore.cpp:41
virtual bool isLocked(void)
Check if semaphore instance is locked.
Definition: EventSemaphore.cpp:93
virtual ~EventSemaphore(void)
Virtual Destructor.
Definition: EventSemaphore.cpp:84
EventSemaphore implements a way to queue its caller until a certain event takes place.
Definition: EventSemaphore.hpp:41
virtual Counter getLimit(void) const
Get the maximum number of listeners of this semaphore.
Definition: EventSemaphore.cpp:292
SemaphoreOperationStatus
Semaphore method return enumeration.
Definition: AbstractSemaphore.hpp:39
SemaphoreOperationStatus post(void)
Indicate owner commitment to trigger the event after a finite amount of time.
Definition: EventSemaphore.cpp:102
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
virtual SemaphoreOperationStatus lockWithWait(void)
Wait for the event associated with this semaphore to take place.
Definition: EventSemaphore.cpp:134
NullPointerException is the base exception type for NullPointer.
Definition: NullPointerException.hpp:40
ScalarIdentifier provides a templated interface for declaring CoreLinux Identifiers for simple scalar...
Definition: ScalarIdentifiers.hpp:37
SemaphoreException is the base exception type for Semaphore.
Definition: SemaphoreException.hpp:39
A Semaphore supports the protocol that processes and/or threads agree to follow for the purpose of co...
Definition: Semaphore.hpp:61
virtual SemaphoreOperationStatus release(void)
Request the semaphore but timeout if not available.
Definition: EventSemaphore.cpp:251
Assertion is-a Exception created when an assertion fails.
Definition: Assertion.hpp:423
EventSemaphoreRef operator=(EventSemaphoreCref)
Assignment operator throws assertion.
virtual SemaphoreOperationStatus lockWithNoWait(void)
Check if the associated event has taken place.
Definition: EventSemaphore.cpp:193
virtual void setLimit(Counter aLimit)
Set the maximum number of listeners allowed on this semaphore.
Definition: EventSemaphore.cpp:270
A SemaphoreGroup is an extension to the Linux semaphore set.
Definition: SemaphoreGroup.hpp:62