git.cweiske.de
/
enigma2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add pcr handling
[enigma2.git]
/
lib
/
base
/
thread.h
1
#ifndef __lib_base_thread_h
2
#define __lib_base_thread_h
3
4
#include <pthread.h>
5
#include <signal.h>
6
7
class eThread
8
{
9
pthread_t the_thread;
10
static void *wrapper(void *ptr);
11
int alive;
12
public:
13
bool thread_running() { return alive; }
14
eThread();
15
virtual ~eThread();
16
17
void run();
18
19
virtual void thread()=0;
20
21
void sendSignal(int sig);
22
void kill();
23
};
24
25
#endif