Classes | |
class | Wefts::MoaningThread |
A thread subclass supporting an arbitrary number of joiners. More... | |
class | Wefts::Thread |
Implements the abstraction of a thread. More... | |
Functions | |
Counter & | Wefts::startedThreads () |
Incremental counter of started threads. | |
virtual void | Wefts::Thread::executionEnd () |
Minimal thraed termination routines. | |
Variables | |
Counter | Wefts::runningThreads |
Counter of currently active (or near-to-be active) threads. |
|
Minimal thraed termination routines. This routine is executed at thread termination to ensure that all non class-dependant operations are done before cleanup() routine and the destructor calls. This function marks the point after which the Wefts level thread object is not considered "running" anymore. Reimplemented in Wefts::MoaningThread. |
|
Incremental counter of started threads. It is used just in internal thread ID count for debugging or reporting purposes. As it is used in constructors, it must be accessed via the "construct on first use" semantic. A function that constructs it on need is called. |
|
Counter of currently active (or near-to-be active) threads. Initialized to 1: if we initialized it, the main thread is running... |