Commit Graph

22 Commits (47c821cf549c8ea4645190a8f4bb18b7a2eaee2b)

Author SHA1 Message Date
Kim Alvefur 83d1e9570a util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with util.time for precision time 9 years ago
Kim Alvefur eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 11 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Waqas Hussain 515d0ff00e util.timer: Always pass the current time to timer callbacks. 14 years ago
Matthew Wild 5e53b5f47c util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani) 14 years ago
Matthew Wild ffa939698b 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) 14 years ago
Matthew Wild 465460b13f util.timer: Remove unused function imports 14 years ago
Matthew Wild 70cb616c9c util.timer: Variable name change (func -> callback) 14 years ago
Matthew Wild 3f7fda7079 util.timer: Fix corner case of timer not repeating if it returns <= 0 14 years ago
Waqas Hussain 02b951a1a8 util.timer: Activate higher timer precision. 15 years ago
Waqas Hussain 976c5d8548 util.timer: Activate higher timer precision. 15 years ago
Matthew Wild 90116b3c35 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. 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild d7d5b34c60 util.timer: Use luaevent's built-in method of repeating an event (fixes a weird crash) 16 years ago
Matthew Wild 723b03c6bf util.timer: Fix libevent timers (event.base doesn't exist...) 16 years ago
Matthew Wild 89fa12376a util.timer: Use libevent for lightweight timers if available and configured (use_libevent option) 16 years ago
Matthew Wild 59a69e124e util.timer: Pass current_time to timer callbacks 16 years ago
Matthew Wild 118883d655 Remove version number from copyright headers 17 years ago
Matthew Wild c80f91dc02 0.3->0.4 17 years ago
Matthew Wild 0c8bb8e89f util.timer: More small fixes I forgot to commit 17 years ago
Matthew Wild d2631d39ca util.timer: Fix crash when loaded but no tasks set, fix skipping some tasks when multiple set, and one removed 17 years ago
Waqas Hussain 97ea70c7d3 Added util/timer.lua - a timer API 17 years ago