aboutsummaryrefslogtreecommitdiff
path: root/lib/base/thread.h
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-06-08 12:38:15 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-06-08 12:38:15 +0000
commit62b8a649fcae500c983215fac2e5202916c0195f (patch)
tree09cda62e0d1be6d3b1db4f3761ac418ad01c50b6 /lib/base/thread.h
parent94284f21b07f1756120e8b6f5dd53e485a9ff66d (diff)
downloadenigma2-62b8a649fcae500c983215fac2e5202916c0195f.tar.gz
enigma2-62b8a649fcae500c983215fac2e5202916c0195f.zip
merge some code with enigma code
Diffstat (limited to 'lib/base/thread.h')
-rw-r--r--lib/base/thread.h8
1 files changed, 5 insertions, 3 deletions
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