1 #if !defined(__MUTEXSEMAPHORE_HPP) 2 #define __MUTEXSEMAPHORE_HPP 24 #if !defined(__COMMON_HPP) 28 #if !defined(__SEMAPHORE_HPP) 29 #include <Semaphore.hpp> 34 DECLARE_CLASS( MutexSemaphore );
75 bool AutoLock =
false,
76 bool Recursive =
true,
145 #endif // if !defined(__MUTEXSEMAPHORE_HPP) virtual SemaphoreOperationStatus lockWithWait(void)
Request the semaphore, wait for availability.
Definition: MutexSemaphore.cpp:108
MutexSemaphore implements a mutual exclusion control which can be used to insure that at most one (1)...
Definition: MutexSemaphore.hpp:51
virtual bool isLocked(void)
Ask if semaphore instance is locked.
Definition: MutexSemaphore.cpp:99
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
MutexSemaphore(void)
Default construct throws assert.
Definition: MutexSemaphore.cpp:39
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 ~MutexSemaphore(void)
Virtual Destructor.
Definition: MutexSemaphore.cpp:90
virtual SemaphoreOperationStatus lockWithNoWait(void)
Request the semaphore without waiting.
Definition: MutexSemaphore.cpp:190
MutexSemaphoreRef operator=(MutexSemaphoreCref)
Assignment operator throws assertion.
virtual SemaphoreOperationStatus release(void)
Request the semaphore but timeout if not available.
Definition: MutexSemaphore.cpp:256
A SemaphoreGroup is an extension to the Linux semaphore set.
Definition: SemaphoreGroup.hpp:62