1 #if !defined(__GATEWAYSEMAPHORE_HPP)
2 #define __GATEWAYSEMAPHORE_HPP
24 #if !defined(__COMMON_HPP)
28 #if !defined(__SEMAPHORE_HPP)
29 #include <Semaphore.hpp>
32 #if !defined(__MAP_HPP)
38 DECLARE_CLASS( GatewaySemaphore );
44 std::less<ThreadIdentifier>,
98 bool Recursive =
false,
180 ThreadIdentifierRef aTid,
193 GatewayClient theClients;
198 #endif // if !defined(__GATEWAYSEMAPHORE_HPP)
virtual Counter getOwnerRecursionQueueLength(void)
Returns the recursion depth for the calling thread.
Definition: GatewaySemaphore.cpp:134
virtual bool isAnOwner(void)
Returns true if calling thread owns a resource.
Definition: GatewaySemaphore.cpp:105
GatewaySemaphore(void)
Default construct throws assert.
Definition: GatewaySemaphore.cpp:39
virtual ~GatewaySemaphore(void)
Virtual Destructor.
Definition: GatewaySemaphore.cpp:86
GatewaySemphore enables a depth of resource indicator.
Definition: GatewaySemaphore.hpp:72
virtual bool isLocked(void)
Ask if AbstractSemaphore instance is locked.
Definition: GatewaySemaphore.cpp:95
SemaphoreOperationStatus
Semaphore method return enumeration.
Definition: AbstractSemaphore.hpp:39
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
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
Assertion is-a Exception created when an assertion fails.
Definition: Assertion.hpp:423
virtual SemaphoreOperationStatus release(void)
Request the AbstractSemaphore but timeout if not available.
Definition: GatewaySemaphore.cpp:409
virtual SemaphoreOperationStatus lockWithWait(void)
Request the lock, wait for availability.
Definition: GatewaySemaphore.cpp:155
virtual SemaphoreOperationStatus lockWithNoWait(void)
Request the lock without waiting.
Definition: GatewaySemaphore.cpp:282
A SemaphoreGroup is an extension to the Linux semaphore set.
Definition: SemaphoreGroup.hpp:62
GatewaySemaphoreRef operator=(GatewaySemaphoreCref)
Assignment operator throws assertion.