git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dont't start vpid/apid if not available
[enigma2.git]
/
lib
/
base
/
thread.h
diff --git
a/lib/base/thread.h
b/lib/base/thread.h
index 56b74bed3abd5544134997360e8cc88b6899d23c..f6c750aff53894aabac7578042ff463437e7facd 100644
(file)
--- a/
lib/base/thread.h
+++ b/
lib/base/thread.h
@@
-2,22
+2,26
@@
#define __lib_base_thread_h
#include <pthread.h>
#define __lib_base_thread_h
#include <pthread.h>
+#include <signal.h>
class eThread
{
pthread_t the_thread;
static void *wrapper(void *ptr);
int alive;
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();
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;
-
- void kill();
+ virtual void thread_finished() { }
+ void sendSignal(int sig);
+
+ void kill(bool sendcancel=false);
};
#endif
};
#endif