mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-23 09:43:24 +03:00
28 lines
400 B
C++
28 lines
400 B
C++
#ifndef CTIMERTHREAD_H
|
|
#define CTIMERTHREAD_H
|
|
|
|
#include "common.h"
|
|
|
|
class CThread;
|
|
|
|
class CTimerThread {
|
|
public:
|
|
CTimerThread(double timeout);
|
|
~CTimerThread();
|
|
|
|
private:
|
|
void timer(void*);
|
|
|
|
// not implemented
|
|
CTimerThread(const CTimerThread&);
|
|
CTimerThread& operator=(const CTimerThread&);
|
|
|
|
private:
|
|
double m_timeout;
|
|
CThread* m_callingThread;
|
|
CThread* m_timingThread;
|
|
};
|
|
|
|
#endif
|
|
|