git.cweiske.de
/
enigma2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add helper object for eSmartPtr, resolving a race condition.
[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 kill();
21
};
22
23
#endif