X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/94284f21b07f1756120e8b6f5dd53e485a9ff66d..62b8a649fcae500c983215fac2e5202916c0195f:/lib/base/thread.h diff --git a/lib/base/thread.h b/lib/base/thread.h index 629a9656..f7130057 100644 --- a/lib/base/thread.h +++ b/lib/base/thread.h @@ -9,17 +9,19 @@ 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; - + virtual void thread_finished() { } + void sendSignal(int sig); - void kill(); + void kill(bool hard=false); }; #endif