diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 00:02:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 00:02:31 +0000 |
commit | ad3c37e38c6c170c1f7cc3232db748ebdc62aa94 (patch) | |
tree | 4b59a16e8bbd2241a4b49c953c089a9180e4a43c /src/inspircd.cpp | |
parent | f5872557eb0eee0f71f16ad39d693024f4cf8b1f (diff) |
Relocate timer stuff into TimerManager class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4827 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 |