blob: a3c56c9e6c68144160c9542c14bb43bd8bfcd91a (
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
26
|
#ifndef alarmsleep_h
#define alarmsleep_h
#include "config.h"
#include "alarm.h"
///////////////////////////////////////////////////////////////////////////
//
// When using the Alarm objects, sleep() can't be used because it mucks
// around with the ALRM signal by itself. Instead, provide the AlarmSleep()
// function (an object, really), in order to be able to sleep for a defined
// number of seconds (an approximation, really).
//
///////////////////////////////////////////////////////////////////////////
class AlarmSleep: public Alarm {
void handler();
int flag;
public:
AlarmSleep(unsigned);
~AlarmSleep();
} ;
#endif
|