generic thread More...
#include <mo_thread.h>
Public Member Functions | |
MoThread () | |
constructor | |
~MoThread () | |
destructor | |
bool | start (THREAD_FUNCTION routine, void *ptr=NULL) |
begin execution of the thread routine. the thread routine can be passed an argument via ptr | |
bool | wait (long milliseconds=-1) |
wait the specified number of milliseconds for the thread to terminate | |
bool | setPriority (long priority) |
set priority | |
void | clear () |
clear | |
Static Public Member Functions | |
static bool | setSelfPriority (long priority) |
set current thread priority | |
static void | test () |
test for a thread cancellation request. | |
Protected Attributes | |
THREAD_HANDLE | thread |
generic thread
MoThread::MoThread | ( | ) |
constructor
MoThread::~MoThread | ( | ) |
destructor
void MoThread::clear | ( | void | ) | [inline] |
clear
bool MoThread::setPriority | ( | long | priority | ) |
set priority
bool MoThread::setSelfPriority | ( | long | priority | ) | [static] |
set current thread priority
bool MoThread::start | ( | THREAD_FUNCTION | routine, | |
void * | ptr = NULL | |||
) |
begin execution of the thread routine. the thread routine can be passed an argument via ptr
void MoThread::test | ( | ) | [static] |
test for a thread cancellation request.
bool MoThread::wait | ( | long | milliseconds = -1 |
) |
wait the specified number of milliseconds for the thread to terminate
THREAD_HANDLE MoThread::thread [protected] |