#include <CThread.h>
Inheritance diagram for AxPipe::CThreadNoRun< T >:
Public Member Functions | |
virtual | ~CThreadNoRun () |
Wait for the worker thread to terminate, then close handles etc. | |
void | WorkStart () |
Initiate one Work() cycle - called from outside worker thread. | |
void | WorkSignal () |
Signal that we've prepared for more Work() - called from outside worker thread. | |
void | WorkWait () |
Wait for more to be ready for Work() - this is called in the worker thread. | |
void | WorkEnd () |
End one Work() cycle - called from the worker thread. | |
virtual void | WorkExitWait () |
Wait for the Work()-thread, if any, to terminate. | |
Private Attributes | |
CThreadSync | m_ThreadSync |
Implement worker thread synchronization. |
The basic thread mechanism revolves around a number of virtual functions that are overriden here, such as Work(). All synchronization etc is handled by the class, and the Work() function is called in it's own thread.
To enable threading use the appropriate CSource, CPipe or CSink derived class as the argument.
Definition at line 134 of file CThread.h.