projects
/
vuplus_dvbapp
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
629a96566c566410dfaa9bdc081ecd592723cf10
[vuplus_dvbapp]
/
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