diff options
Diffstat (limited to 'maildrop/dotlockrefresh.h')
| -rw-r--r-- | maildrop/dotlockrefresh.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/maildrop/dotlockrefresh.h b/maildrop/dotlockrefresh.h new file mode 100644 index 0000000..8fc9968 --- /dev/null +++ b/maildrop/dotlockrefresh.h @@ -0,0 +1,28 @@ +#ifndef dotlockrefresh_h +#define dotlockrefresh_h + + +#include "config.h" +#include "alarm.h" + +/////////////////////////////////////////////////////////////////////////// +// +// This is a member object of DotLock that is derived from Alarm. DotLock +// sets a timeout to have this dotlock refreshed, in order to keep it +// from being removed as a stale dotlock, by some other process. +// The main code to do that is part of the DotLock class, this is just +// a stub to redirect the alarm call to the DotLock class. +// +/////////////////////////////////////////////////////////////////////////// + +class DotLock; + +class DotLockRefresh : public Alarm { + + void handler(); + DotLock *dotlock; +public: + DotLockRefresh(DotLock *); + ~DotLockRefresh(); +} ; +#endif |
