]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/m_spanningtree/cachetimer.h
dcfba8ef3e836502d1dd518f4fdbc30721033536
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / cachetimer.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #ifndef __TIMESYNC_H__
15 #define __TIMESYNC_H__
16
17 #include "timer.h"
18
19 class ModuleSpanningTree;
20 class SpanningTreeUtilities;
21
22 /** Create a timer which recurs every second, we inherit from Timer.
23  * Timer is only one-shot however, so at the end of each Tick() we simply
24  * insert another of ourselves into the pending queue :)
25  */
26 class CacheRefreshTimer : public Timer
27 {
28  private:
29         SpanningTreeUtilities *Utils;
30  public:
31         CacheRefreshTimer(SpanningTreeUtilities* Util);
32         virtual void Tick(time_t TIME);
33 };
34
35 #endif