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 --- src/inspircd.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 6b4800887..a4b6181ab 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -293,6 +293,7 @@ InspIRCd::InspIRCd(int argc, char** argv) OpenLog(argv, argc); this->stats = new serverstats(); this->Parser = new CommandParser(); + this->Timers = new TimerManager(); Config->ClearStack(); Config->Read(true, NULL); CheckRoot(); @@ -701,7 +702,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets) { FOREACH_MOD(I_OnBackgroundTimer,OnBackgroundTimer(TIME)); } - TickMissedTimers(TIME); + Timers->TickMissedTimers(TIME); expire_run = true; return; } @@ -735,7 +736,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets) if (process_module_sockets) this->DoSocketTimeouts(TIME); - TickTimers(TIME); + Timers->TickTimers(TIME); /* Call the socket engine to wait on the active * file descriptors. The socket engine has everything's -- cgit v1.3.1-10-gc9f91