38#ifndef BLOCXX_SEMAPHORE_HPP_INCLUDE_GUARD_
39#define BLOCXX_SEMAPHORE_HPP_INCLUDE_GUARD_
40#include "blocxx/BLOCXX_config.h"
69 BLOCXX_DEPRECATED
bool timedWait(UInt32 sTimeout, UInt32 usTimeout=0)
The Condition class represents a synchronization device that allows threads to suspend execution and ...
void wait(NonRecursiveMutexLock &lock)
Atomically unlock a given mutex and wait for the this Condition object to get signalled.
void notifyAll()
Signal all threads that are currently waiting on the Condition object.
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 ...
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 &)
Semaphore(Int32 initCount)
Semaphore(const Semaphore &)
NonRecursiveMutex m_mutex
bool timedWait(const Timeout &timeout)
BLOCXX_DEPRECATED bool timedWait(UInt32 sTimeout, UInt32 usTimeout=0)
A timeout can be absolute, which means that it will happen at the specified DateTime.
static Timeout relative(float seconds)
A TimeoutTimer is used by an algorithm to determine when a timeout has expired.
Timeout asAbsoluteTimeout() const
Converts the timer to an absolute timeout.