From 8bd7cb69b1242ac0bf42a6bb3f77afda516d1fe9 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Wed, 9 Jul 2008 01:25:19 +0000 Subject: * Added const to the return value of get_timer. * Added a maximum timer interval. Avoids server shutdowns being delayed for ~10 seconds under some circumstances on windows. * Replaced the fake timer heap (ordered array) with a binary min heap. (actually, this is just a merge and has been in use for months) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12926 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/timer.h') diff --git a/src/common/timer.h b/src/common/timer.h index 28a792f88..354a71113 100644 --- a/src/common/timer.h +++ b/src/common/timer.h @@ -40,7 +40,7 @@ unsigned int gettick_nocache(void); int add_timer(unsigned int tick, TimerFunc func, int id, intptr data); int add_timer_interval(unsigned int tick, TimerFunc func, int id, intptr data, int interval); -struct TimerData* get_timer(int tid); +const struct TimerData* get_timer(int tid); int delete_timer(int tid, TimerFunc func); int addtick_timer(int tid, unsigned int tick); -- cgit v1.2.3-60-g2f50