aboutsummaryrefslogtreecommitdiffstats
path: root/util/timer.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.timer: Reschedule timers from stop() if the next pending event is stoppedKim Alvefur2015-12-231-1/+10
|
* util.timer: If possible, close the existing timer handle in order to have ↵Kim Alvefur2015-11-221-2/+8
| | | | only one
* util.timer: Expire timer instance if another instance is already set to take ↵Kim Alvefur2015-11-221-2/+11
| | | | care of the next scheduled event
* util.timer: Keep count of how many timer instances are activeKim Alvefur2015-11-221-0/+3
|
* util.timer: Fix indentationKim Alvefur2015-09-181-6/+6
|
* Merge 0.10->trunkKim Alvefur2015-08-201-12/+16
|\
| * util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-4/+4
| | | | | | | | return them in a table at the end
* | Move timer code out of util.timer and into relevant net.server backendsdaurnimator2014-10-201-66/+1
| |
* | util/timer: Re-set params when timer is rescheduleddaurnimator2013-11-061-0/+1
| |
* | util.timer: Import all require upvalues.Waqas Hussain2013-10-301-1/+4
| |
* | util.timer: Fix another variable name typo (thanks again zash).Waqas Hussain2013-10-301-2/+2
| |
* | util.timer: Fix variable name typo.Waqas Hussain2013-10-301-2/+2
| |
* | util.timer: Updated to use util.indexedbheap to provide a more complete API. ↵Waqas Hussain2013-10-301-1/+57
|/ | | | Timers can now be stopped or rescheduled. Callbacks are now pcall'd. Adding/removing timers from within timer callbacks works better. Optional parameter can be passed when creating timer which gets passed to callback, eliminating the need for closures in various timer uses. Timers are now much more lightweight.
* Remove all trailing whitespaceFlorian Zeitz2013-08-091-2/+2
|
* util.timer: Always pass the current time to timer callbacks.Waqas Hussain2012-05-121-2/+2
|
* util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani)Matthew Wild2012-05-031-2/+2
|
* net.server, net.timer, net.server_select: Rearrange dependencies between ↵Matthew Wild2012-05-031-7/+6
| | | | these three modules. server.addtimer() is no longer a public function (renamed to _addtimer) and is not available at all from server_event (compat code removed to prevent traceback) (thanks Nulani)
* util.timer: Remove unused function importsMatthew Wild2012-04-281-2/+1
|
* util.timer: Variable name change (func -> callback)Matthew Wild2011-11-031-9/+9
|
* util.timer: Fix corner case of timer not repeating if it returns <= 0Matthew Wild2011-09-221-1/+4
|
* util.timer: Activate higher timer precision.Waqas Hussain2010-12-021-2/+11
|
* util.timer: When using libevent hold onto the event handle to stop it being ↵Matthew Wild2010-04-071-2/+3
| | | | collected (and the timer stopping). Fixes BOSH ghosts, thanks Flo, niekie, waqas.
* Merge 0.6->0.7Matthew Wild2010-03-221-2/+2
|\
| * Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
| |
* | util.timer: Use luaevent's built-in method of repeating an event (fixes a ↵Matthew Wild2009-12-171-2/+2
| | | | | | | | weird crash)
* | util.timer: Fix libevent timers (event.base doesn't exist...)Matthew Wild2009-11-211-1/+2
| |
* | util.timer: Use libevent for lightweight timers if available and configured ↵Matthew Wild2009-11-211-24/+44
|/ | | | (use_libevent option)
* util.timer: Pass current_time to timer callbacksMatthew Wild2009-10-031-1/+1
|
* Remove version number from copyright headersMatthew Wild2009-07-101-1/+1
|
* 0.3->0.4Matthew Wild2009-03-201-1/+1
|
* util.timer: More small fixes I forgot to commitMatthew Wild2009-02-261-4/+2
|
* util.timer: Fix crash when loaded but no tasks set, fix skipping some tasks ↵Matthew Wild2009-02-261-7/+13
| | | | when multiple set, and one removed
* Added util/timer.lua - a timer APIWaqas Hussain2009-02-211-0/+47