Log

util/timer.lua @ 11379:5c820553ef82

description author age
Merge 0.11->trunk Kim Alvefur 2021-01-08
util.timer: Ensure timers can't run more than once per tick (fixes #1620) 0.11 Kim Alvefur 2021-01-08
util.timer: Defer to selected net.server if it implements this API Kim Alvefur 2020-06-29
Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall Matthew Wild 2018-10-26
util.{async,timer}: Move sleep() to reduce dependencies of util.timer Kim Alvefur 2018-07-07
util.timer: Ensure we don't try to schedule negative timeouts (which rightly upset libevent). Fixes #1135 Matthew Wild 2018-04-29
util.timer: Move sleep() here from util.async Kim Alvefur 2018-03-23
vairious: Add annotation when an empty environment is set [luacheck] Kim Alvefur 2018-02-28
Merge 0.10->trunk Kim Alvefur 2017-03-20
util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with util.time for precision time Kim Alvefur 2017-03-19
util.timer: Reschedule timers from stop() if the next pending event is stopped Kim Alvefur 2015-12-23
util.timer: If possible, close the existing timer handle in order to have only one Kim Alvefur 2015-11-22
util.timer: Expire timer instance if another instance is already set to take care of the next scheduled event Kim Alvefur 2015-11-22
util.timer: Keep count of how many timer instances are active Kim Alvefur 2015-11-22
util.timer: Fix indentation Kim Alvefur 2015-09-18
Merge 0.10->trunk Kim Alvefur 2015-08-20
util.*: Remove use of module() function, make all module functions local and return them in a table at the end Kim Alvefur 2015-02-21
Move timer code out of util.timer and into relevant net.server backends daurnimator 2014-10-20
util/timer: Re-set params when timer is rescheduled daurnimator 2013-11-06
util.timer: Import all require upvalues. Waqas Hussain 2013-10-30
util.timer: Fix another variable name typo (thanks again zash). Waqas Hussain 2013-10-30
util.timer: Fix variable name typo. Waqas Hussain 2013-10-30
util.timer: Updated to use util.indexedbheap to provide a more complete API. 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. Waqas Hussain 2013-10-30
Remove all trailing whitespace Florian Zeitz 2013-08-09
util.timer: Always pass the current time to timer callbacks. Waqas Hussain 2012-05-12
util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani) Matthew Wild 2012-05-03
net.server, net.timer, net.server_select: Rearrange dependencies between 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) Matthew Wild 2012-05-03
util.timer: Remove unused function imports Matthew Wild 2012-04-28
util.timer: Variable name change (func -> callback) Matthew Wild 2011-11-03
util.timer: Fix corner case of timer not repeating if it returns <= 0 Matthew Wild 2011-09-22
util.timer: Activate higher timer precision. Waqas Hussain 2010-12-02
util.timer: When using libevent hold onto the event handle to stop it being collected (and the timer stopping). Fixes BOSH ghosts, thanks Flo, niekie, waqas. Matthew Wild 2010-04-07
Merge 0.6->0.7 Matthew Wild 2010-03-22
Update copyright headers for 2010 Matthew Wild 2010-03-22
util.timer: Use luaevent's built-in method of repeating an event (fixes a weird crash) Matthew Wild 2009-12-17
util.timer: Fix libevent timers (event.base doesn't exist...) Matthew Wild 2009-11-21
util.timer: Use libevent for lightweight timers if available and configured (use_libevent option) Matthew Wild 2009-11-21
util.timer: Pass current_time to timer callbacks Matthew Wild 2009-10-03
Remove version number from copyright headers Matthew Wild 2009-07-10
0.3->0.4 Matthew Wild 2009-03-20
util.timer: More small fixes I forgot to commit Matthew Wild 2009-02-26
util.timer: Fix crash when loaded but no tasks set, fix skipping some tasks when multiple set, and one removed Matthew Wild 2009-02-26
Added util/timer.lua - a timer API Waqas Hussain 2009-02-20