class toThread

Used to create new threads of execution. More...

Definition#include <tothread.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Public Members


Detailed Description

Used to create new threads of execution. When a thread exits it will delete the thread and task objects so the calling thread must never delete a started thread.

 toThread (toTask *)

toThread

 ~toThread ()

~toThread

void  start (void)

start

void  startAsync (void)

startAsync

void  msleep (int msec)

msleep

[static]

bool  mainThread (void)

mainThread

[static]

friend class taskRunner

taskRunner

 toThread (toTask *task)

toThread

Create thread.

Parameters:
taskTask to run.

 ~toThread ()

~toThread

void  start (void)

start

Start thread and wait for other thread to start running.

void  startAsync (void)

startAsync

Start thread and continue executing this thread until normal scheduling handles over execution to child thread.

void  msleep (int msec)

msleep

[static]

Sleep in milliseconds.

bool  mainThread (void)

mainThread

[static]

Returns true if this is the main thread.