git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge some code with enigma code
[enigma2.git]
/
lib
/
base
/
thread.h
diff --git
a/lib/base/thread.h
b/lib/base/thread.h
index 629a96566c566410dfaa9bdc081ecd592723cf10..f71300579238c22b839f14e69d051e0a1776b30c 100644
(file)
--- 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;
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();
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()=0;
-
+ virtual void thread_finished() { }
+
void sendSignal(int sig);
void sendSignal(int sig);
- void kill();
+ void kill(
bool hard=false
);
};
#endif
};
#endif