X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..62b8a649fcae500c983215fac2e5202916c0195f:/lib/base/thread.h diff --git a/lib/base/thread.h b/lib/base/thread.h index 56b74bed..f7130057 100644 --- a/lib/base/thread.h +++ b/lib/base/thread.h @@ -2,22 +2,26 @@ #define __lib_base_thread_h #include +#include class eThread { pthread_t the_thread; static void *wrapper(void *ptr); int alive; + static void thread_completed(void *p); public: bool thread_running() { return alive; } eThread(); virtual ~eThread(); - void run(); + void run(int prio=0,int policy=0); virtual void thread()=0; - - void kill(); + virtual void thread_finished() { } + + void sendSignal(int sig); + void kill(bool hard=false); }; #endif