#include <CSync.h>
Inheritance diagram for AxPipe::CThreadMain< T >:

Public Member Functions | |
| CThreadMain () | |
| Create thread and set priority. | |
| virtual | ~CThreadMain () |
| Wait for the worker thread to terminate, then close handles etc. | |
| void | Run () |
| Start the thread running. | |
| void | Wait () |
| Wait for the worker thread to end - called from outside worker thread, Obviously. | |
Private Member Functions | |
| virtual int | Main () |
| The main() of the thread, derived classes must override. | |
Static Private Member Functions | |
| DWORD WINAPI | Main (LPVOID lpParam) |
| static helper to get back into the class after starting the thread Calls the virtual Main(), returns the result of that as the thread exit code. | |
Private Attributes | |
| DWORD | m_dwThreadId |
| The ThreadId of the started thread. | |
| HANDLE | m_hThread |
| Handle to the worker thread. | |
Definition at line 89 of file CSync.h.
|
|||||||||
|
Create thread and set priority. The thread will not start, it is created initially suspended. Use CThreadMain::Run() to start it. |
|
|||||||||
|
The main() of the thread, derived classes must override. A separate thread will be started, calling this function and returning it's return value as the thread exit code.
Reimplemented in AxPipe::CThread< T >, AxPipe::CThreadSource< T >, and AxPipe::CThread< CSink >. |
|
||||||||||
|
static helper to get back into the class after starting the thread Calls the virtual Main(), returns the result of that as the thread exit code.
|
1.3.5