Files
libstb-hal/common/thread_abstraction.h
max_10 bc7be9dd74 Revert "fix thread namespace"
This reverts commit 3ef2eeb8aa.
2018-10-04 22:48:54 +02: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