#include <thread.h>
Public Member Functions | |
| _BasicThread () | |
| Initializes the thread object, but does not start the thread. | |
| bool | Start () |
| bool | Terminate () |
| bool | Join () |
| Waits for the thread to complete. | |
| bool | Suspend () |
| bool | Resume () |
| int | GetReturnCode (bool *pbSuccess=NULL) |
| unsigned | GetThreadID () |
| ~_BasicThread () | |
Static Public Member Functions | |
| static void | Sleep (unsigned Millisecs) |
Private Attributes | |
| HANDLE | m_hThread |
| DWORD | m_ThreadID |
The _BasicThread template class represents a single Win32 thread and contains methods for controlling it. The thread body is defined through the template parameter (DescendantClass::ThreadStarter static function is called, passing this as a parameter). That allows declaring VT-less thread classes. However, as VT is not a huge overhead, a classical pure method-based BazisLib::Win32::Thread class is provided.
| BazisLib::Win32::_BasicThread< DescendantClass >::_BasicThread | ( | ) | [inline] |
| BazisLib::Win32::_BasicThread< DescendantClass >::~_BasicThread | ( | ) | [inline] |

| int BazisLib::Win32::_BasicThread< DescendantClass >::GetReturnCode | ( | bool * | pbSuccess = NULL |
) | [inline] |
| unsigned BazisLib::Win32::_BasicThread< DescendantClass >::GetThreadID | ( | ) | [inline] |
| bool BazisLib::Win32::_BasicThread< DescendantClass >::Join | ( | ) | [inline] |
Waits for the thread to complete.
| bool BazisLib::Win32::_BasicThread< DescendantClass >::Resume | ( | ) | [inline] |
| static void BazisLib::Win32::_BasicThread< DescendantClass >::Sleep | ( | unsigned | Millisecs | ) | [inline, static] |
| bool BazisLib::Win32::_BasicThread< DescendantClass >::Start | ( | ) | [inline] |
| bool BazisLib::Win32::_BasicThread< DescendantClass >::Suspend | ( | ) | [inline] |
| bool BazisLib::Win32::_BasicThread< DescendantClass >::Terminate | ( | ) | [inline] |
HANDLE BazisLib::Win32::_BasicThread< DescendantClass >::m_hThread [private] |
DWORD BazisLib::Win32::_BasicThread< DescendantClass >::m_ThreadID [private] |