X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/72042565cd6784df72578c3e40c6589d7366ced0..538edf5d148615f66a5f76fd64d6f19ded69d862:/lib/base/thread.h diff --git a/lib/base/thread.h b/lib/base/thread.h index 629a9656..f6c750af 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 sendcancel=false); }; #endif