#include <mythread.h>
Public Methods | |
| Thread (Semaphore *sem=NULL, int pri=10) | |
| void | SetSemaphore (Semaphore *sem) |
| virtual | ~Thread () |
| pthread_t | ID () |
| bool | isExit () |
| void | Exit () |
| int | StartMain (void *var=NULL) |
| int | Kill () |
| bool | isRunning () |
| void | SetPriority (int pri) |
| Semaphore * | Lock () |
| int | Wait () |
| int | Post () |
Public Attributes | |
| void * | vptr |
Protected Methods | |
| virtual void | RunMain (void *var=NULL)=0 |
Protected Attributes | |
| bool | run_flag |
Friends | |
| void | Thread_ThreadRun (Thread *th) |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001