Monitoring the Execution State of a Runnable
Each runnable can exist in any one of a number of execution states. The current execution state of a runnable can be queried at any time.
Runnables allow other threads to wait for the runnable to enter a particular execution state. Callback methods can be registered for execution upon entry into states of interest.
This operation is implemented by the following functions:
RWExecutionState RWRunnableHandle::getExecutionState(void) const RWExecutionState RWRunnable::getExecutionState(void) const RWExecutionState RWRunnable::wait(unsigned long stateMask) RWExecutionState RWRunnable::wait(unsigned long stateMask RWExecutionState* state, unsigned long milliseconds) void RWRunnableHandle::addCallback(const RWTFunctor<void(const RWRunnable&, RWExecutionState)>& functor, unsigned long stateMask, RWCallbackScope scope) void RWRunnableHandle::removeCallback(const RWTFunctor<void(const RWRunnable&, RWExecutionState)>& functor)