Files
libstb-hal/generic-pc/thread_abstraction.h
2015-01-11 17:52:31 +01:00

26 lines
362 B
C++

#ifndef _THREAD_ABSTRACTION_H
#define _THREAD_ABSTRACTION_H
#include <pthread.h>
class Thread
{
bool mIsRunning;
pthread_t mThread;
static void* runThread(void*);
Thread(const Thread&);
const Thread& operator=(const Thread&);
public:
Thread();
~Thread();
void startThread();
void joinThread();
protected:
virtual void run() = 0;
};
#endif