mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-10 08:21:40 +08:00
Started over.
This commit is contained in:
27
mt/CTimerThread.h
Normal file
27
mt/CTimerThread.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user