From ad3c37e38c6c170c1f7cc3232db748ebdc62aa94 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 00:02:31 +0000 Subject: Relocate timer stuff into TimerManager class git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4827 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/timer.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'include/timer.h') diff --git a/include/timer.h b/include/timer.h index ec00abe4f..4d1eee470 100644 --- a/include/timer.h +++ b/include/timer.h @@ -54,8 +54,21 @@ class InspTimer : public Extensible virtual void Tick(time_t TIME) = 0; }; -void TickTimers(time_t TIME); -void AddTimer(InspTimer* T); -void TickMissedTimers(time_t TIME); +class TimerManager : public Extensible +{ + protected: + + typedef std::vector timergroup; + typedef std::map timerlist; + + private: + + timerlist Timers; + + public: + void TickTimers(time_t TIME); + void AddTimer(InspTimer* T); + void TickMissedTimers(time_t TIME); +}; #endif -- cgit v1.2.3