2001-10-06 14:13:28 +00:00
|
|
|
#ifndef CTIMERTHREAD_H
|
|
|
|
#define CTIMERTHREAD_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
class CThread;
|
|
|
|
|
|
|
|
class CTimerThread {
|
2002-04-29 14:40:01 +00:00
|
|
|
public:
|
2001-10-06 14:13:28 +00:00
|
|
|
CTimerThread(double timeout);
|
|
|
|
~CTimerThread();
|
|
|
|
|
2002-04-29 14:40:01 +00:00
|
|
|
private:
|
2001-10-06 14:13:28 +00:00
|
|
|
void timer(void*);
|
|
|
|
|
|
|
|
// not implemented
|
|
|
|
CTimerThread(const CTimerThread&);
|
|
|
|
CTimerThread& operator=(const CTimerThread&);
|
|
|
|
|
2002-04-29 14:40:01 +00:00
|
|
|
private:
|
2001-10-06 14:13:28 +00:00
|
|
|
double m_timeout;
|
|
|
|
CThread* m_callingThread;
|
|
|
|
CThread* m_timingThread;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|