diff options
Diffstat (limited to 'maildrop/alarmsleep.h')
| -rw-r--r-- | maildrop/alarmsleep.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/maildrop/alarmsleep.h b/maildrop/alarmsleep.h new file mode 100644 index 0000000..a3c56c9 --- /dev/null +++ b/maildrop/alarmsleep.h @@ -0,0 +1,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 |
