1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
/* DSTART */
/* */
/* maildrop - mail delivery agent with filtering abilities */
/* */
/* Copyright 1998, Double Precision Inc. */
/* */
/* This program is distributed under the terms of the GNU General Public */
/* License. See COPYING for additional information. */
/* DEND */
#ifndef dotlockrefresh_h
#define dotlockrefresh_h
static const char dotlockrefresh_h_rcsid[]="$Id: dotlockrefresh.h 1.1 1998/04/17 00:08:53 mrsam Exp $";
#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
|