Back to index

courier  0.68.2
dotlockrefresh.h
Go to the documentation of this file.
00001 #ifndef       dotlockrefresh_h
00002 #define       dotlockrefresh_h
00003 
00004 
00005 #include      "config.h"
00006 #include      "alarm.h"
00007 
00009 //
00010 // This is a member object of DotLock that is derived from Alarm.  DotLock
00011 // sets a timeout to have this dotlock refreshed, in order to keep it
00012 // from being removed as a stale dotlock, by some other process.
00013 // The main code to do that is part of the DotLock class, this is just
00014 // a stub to redirect the alarm call to the DotLock class.
00015 //
00017 
00018 class DotLock;
00019 
00020 class DotLockRefresh : public Alarm {
00021 
00022        void   handler();
00023        DotLock       *dotlock;
00024 public:
00025        DotLockRefresh(DotLock *);
00026        ~DotLockRefresh();
00027 } ;
00028 #endif