class toThread
|
Used to create new threads of execution. More... |
|
|
Public Methods
Public Static Methods
Public Members
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.
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:
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.