blob: 15caaf6021a796cc97037416c174ab962c827141 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef alarmtimer_h
#define alarmtimer_h
#include "config.h"
#include "alarm.h"
///////////////////////////////////////////////////////////////////////////
//
// This is mainly used by DotLock to implement a dotlock timeout.
//
///////////////////////////////////////////////////////////////////////////
class AlarmTimer: public Alarm {
void handler();
int flag;
public:
AlarmTimer();
void Set(unsigned);
~AlarmTimer();
int Expired() { return (flag); }
} ;
#endif
|