C/C++ Reference
Thread Struct Reference

A simple thread class. More...

#include <ThreadLib.h>

Inheritance diagram for Thread:

List of all members.

Public Member Functions

 Thread (Thread_Run r, ThreadPriority priority, int stackSize)
 Create a thread.
void start ()
 Start the thread.

Static Public Member Functions

static void sleep (unsigned int milliseconds)
 Suspend the current thread for n milliseconds.

Detailed Description

A simple thread class.

The thread class makes it possible to design a platform independent system using threads.


Constructor & Destructor Documentation

Thread::Thread ( Thread_Run  r,
ThreadPriority  priority,
int  stackSize 
)

Create a thread.

Parameters:
ra pointer to the thread run method.
prioritythe thread priority.
stackSizethe thread stack size.