Public Member Functions | Static Public Member Functions | Protected Attributes

MoThread Struct Reference

generic thread More...

#include <mo_thread.h>

List of all members.

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

Detailed Description

generic thread


Constructor & Destructor Documentation

MoThread::MoThread (  ) 

constructor

MoThread::~MoThread (  ) 

destructor


Member Function Documentation

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


Member Data Documentation


The documentation for this struct was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines