1 #ifndef __lib_base_thread_h
2 #define __lib_base_thread_h
10 static void *wrapper(void *ptr);
12 static void thread_completed(void *p);
14 bool thread_running() { return alive; }
18 void run(int prio=0, int policy=0);
20 virtual void thread()=0;
21 virtual void thread_finished() { }
22 void sendSignal(int sig);
24 void kill(bool sendcancel=false);