Back to index

courier  0.68.2
alarmsleep.h
Go to the documentation of this file.
00001 #ifndef       alarmsleep_h
00002 #define       alarmsleep_h
00003 
00004 
00005 #include      "config.h"
00006 #include      "alarm.h"
00007 
00009 //
00010 //  When using the Alarm objects, sleep() can't be used because it mucks
00011 //  around with the ALRM signal by itself.  Instead, provide the AlarmSleep()
00012 //  function (an object, really), in order to be able to sleep for a defined
00013 //  number of seconds (an approximation, really).
00014 //
00016 
00017 class AlarmSleep: public Alarm {
00018 
00019        void   handler();
00020        int    flag;
00021 public:
00022        AlarmSleep(unsigned);
00023        ~AlarmSleep();
00024 } ;
00025 
00026 #endif