#include <sched.h>#include <iostream.h>#include "semaphore.h"#include <pthread.h>#include "misc.h"Go to the source code of this file.
Compounds | |
| class | Thread |
Defines | |
| #define | DEFINE_TEMPLATE_THREAD_CLASS(T, Etype) |
| #define | DEFINE_THREAD_CLASS(T) DEFINE_TEMPLATE_THREAD_CLASS(T, void) |
Typedefs | |
| typedef void *(* | void_t )(void *) |
Functions | |
| void | Thread_ThreadRun (Thread *th) |
|
|
Value: class T : public Thread {\ private: void Run(Etype *v = NULL); \ void RunMain(void *v = NULL) { Run(reinterpret_cast<Etype*>(v)); } \ public: T(Semaphore *sem = NULL, int pri = 0) : Thread(sem,pri) {}; \ ~T() {Exit();} \ int Start(Etype *v) {return StartMain(reinterpret_cast<void*>(v));} \ } Definition at line 151 of file mythread.h. |
|
|
Definition at line 159 of file mythread.h. |
|
|
Definition at line 15 of file mythread.h. Referenced by Thread::StartMain(). |
|
|
Definition at line 140 of file mythread.h. References Thread::run_flag, Thread::RunMain(), and Thread::vptr. |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001