38 #ifndef BLOCXX_SEMAPHORE_HPP_INCLUDE_GUARD_
39 #define BLOCXX_SEMAPHORE_HPP_INCLUDE_GUARD_
40 #include "blocxx/BLOCXX_config.h"
48 namespace BLOCXX_NAMESPACE
Timeout asAbsoluteTimeout() const
Converts the timer to an absolute timeout.
A TimeoutTimer is used by an algorithm to determine when a timeout has expired.
void wait(NonRecursiveMutexLock &lock)
Atomically unlock a given mutex and wait for the this Condition object to get signalled.
const UInt32 INFINITE_TIMEOUT BLOCXX_DEPRECATED
Value that means infinite timeout.
void notifyAll()
Signal all threads that are currently waiting on the Condition object.
NonRecursiveMutex m_mutex
Semaphore(Int32 initCount)
static Timeout relative(float seconds)
A timeout can be absolute, which means that it will happen at the specified DateTime.
bool timedWait(NonRecursiveMutexLock &lock, const Timeout &timeout)
Atomically unlock a given mutex and wait for a given amount of time for this Condition object to get ...
BLOCXX_DEPRECATED bool timedWait(UInt32 sTimeout, UInt32 usTimeout=0)
Note that descriptions of what exceptions may be thrown assumes that object is used correctly...
Note that descriptions of what exceptions may be thrown assumes that object is used correctly...
Semaphore & operator=(const Semaphore &)
bool timedWait(const Timeout &timeout)
The Condition class represents a synchronization device that allows threads to suspend execution and ...