1 #ifndef dotlockrefresh_h 2 #define dotlockrefresh_h 3 4 static const char dotlockrefresh_h_rcsid[]="$Id: dotlockrefresh.h,v 1.1 1998/04/17 00:08:53 mrsam Exp $"; 5 6 #include "alarm.h" 7 8 /////////////////////////////////////////////////////////////////////////// 9 // 10 // This is a member object of DotLock that is derived from Alarm. DotLock 11 // sets a timeout to have this dotlock refreshed, in order to keep it 12 // from being removed as a stale dotlock, by some other process. 13 // The main code to do that is part of the DotLock class, this is just 14 // a stub to redirect the alarm call to the DotLock class. 15 // 16 /////////////////////////////////////////////////////////////////////////// 17 18 class DotLock; 19 20 class DotLockRefresh : public Alarm { 21 22 void handler(); 23 DotLock *dotlock; 24 public: 25 DotLockRefresh(DotLock *); 26 ~DotLockRefresh(); 27 } ; 28 #endif 29