Go to the documentation of this file.
38 #ifndef BLOCXX_SEMAPHORE_HPP_INCLUDE_GUARD_
39 #define BLOCXX_SEMAPHORE_HPP_INCLUDE_GUARD_
40 #include "blocxx/BLOCXX_config.h"
62 NonRecursiveMutexLock l(
m_mutex);
76 NonRecursiveMutexLock l(
m_mutex);
77 TimeoutTimer timer(timeout);
90 NonRecursiveMutexLock l(
m_mutex);
96 NonRecursiveMutexLock l(
m_mutex);
const UInt32 INFINITE_TIMEOUT BLOCXX_DEPRECATED
Value that means infinite timeout.
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 ...
void wait(NonRecursiveMutexLock &lock)
Atomically unlock a given mutex and wait for the this Condition object to get signalled.
static Timeout relative(float seconds)
NonRecursiveMutex m_mutex
BLOCXX_DEPRECATED bool timedWait(UInt32 sTimeout, UInt32 usTimeout=0)
Semaphore & operator=(const Semaphore &)
void notifyAll()
Signal all threads that are currently waiting on the Condition object.