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