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