Go to the documentation of this file.
38 #include "blocxx/BLOCXX_config.h"
67 BLOCXX_THROW(TimeoutException,
"ThreadCounter::incThreadCount timedout");
void incThreadCount(const Timeout &timeout)
#define BLOCXX_THROW(exType, msg)
Throw an exception using FILE and LINE.
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 ...
NonRecursiveMutex m_runCountGuard
Note that descriptions of what exceptions may be thrown assumes that object is used correctly,...
virtual ~ThreadCountDecrementer()
void waitForAll(const Timeout &timeout)
void setMax(Int32 maxThreads)
static Timeout relative(float seconds)
ThreadCounter(Int32 maxThreads)
virtual void doNotifyThreadDone(Thread *)
Descriptions of exceptions thrown assume that the object is used correctly, i.e., method precondition...
ThreadCountDecrementer(ThreadCounterRef const &x)
ThreadCounterRef m_counter
Condition m_runCountCondition
A timeout can be absolute, which means that it will happen at the specified DateTime.
#define BLOCXX_ASSERT(CON)
BLOCXX_ASSERT works similar to the assert() macro, but instead of calling abort(),...
void notifyAll()
Signal all threads that are currently waiting on the Condition object.