Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge 0.10->trunk | Kim Alvefur | 2017-03-20 | 1 | -1/+1 |
|\ | |||||
| * | util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with ↵ | Kim Alvefur | 2017-03-20 | 1 | -1/+1 |
| | | | | | | | | util.time for precision time | ||||
* | | util.timer: Reschedule timers from stop() if the next pending event is stopped | Kim Alvefur | 2015-12-23 | 1 | -1/+10 |
| | | |||||
* | | util.timer: If possible, close the existing timer handle in order to have ↵ | Kim Alvefur | 2015-11-22 | 1 | -2/+8 |
| | | | | | | | | only one | ||||
* | | util.timer: Expire timer instance if another instance is already set to take ↵ | Kim Alvefur | 2015-11-22 | 1 | -2/+11 |
| | | | | | | | | care of the next scheduled event | ||||
* | | util.timer: Keep count of how many timer instances are active | Kim Alvefur | 2015-11-22 | 1 | -0/+3 |
| | | |||||
* | | util.timer: Fix indentation | Kim Alvefur | 2015-09-18 | 1 | -6/+6 |
| | | |||||
* | | Merge 0.10->trunk | Kim Alvefur | 2015-08-20 | 1 | -12/+16 |
|\| | |||||
| * | util.*: Remove use of module() function, make all module functions local and ↵ | Kim Alvefur | 2015-02-21 | 1 | -4/+4 |
| | | | | | | | | return them in a table at the end | ||||
* | | Move timer code out of util.timer and into relevant net.server backends | daurnimator | 2014-10-20 | 1 | -66/+1 |
| | | |||||
* | | util/timer: Re-set params when timer is rescheduled | daurnimator | 2013-11-06 | 1 | -0/+1 |
| | | |||||
* | | util.timer: Import all require upvalues. | Waqas Hussain | 2013-10-30 | 1 | -1/+4 |
| | | |||||
* | | util.timer: Fix another variable name typo (thanks again zash). | Waqas Hussain | 2013-10-30 | 1 | -2/+2 |
| | | |||||
* | | util.timer: Fix variable name typo. | Waqas Hussain | 2013-10-30 | 1 | -2/+2 |
| | | |||||
* | | util.timer: Updated to use util.indexedbheap to provide a more complete API. ↵ | Waqas Hussain | 2013-10-30 | 1 | -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 whitespace | Florian Zeitz | 2013-08-09 | 1 | -2/+2 |
| | |||||
* | util.timer: Always pass the current time to timer callbacks. | Waqas Hussain | 2012-05-12 | 1 | -2/+2 |
| | |||||
* | util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani) | Matthew Wild | 2012-05-03 | 1 | -2/+2 |
| | |||||
* | net.server, net.timer, net.server_select: Rearrange dependencies between ↵ | Matthew Wild | 2012-05-03 | 1 | -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 imports | Matthew Wild | 2012-04-28 | 1 | -2/+1 |
| | |||||
* | util.timer: Variable name change (func -> callback) | Matthew Wild | 2011-11-03 | 1 | -9/+9 |
| | |||||
* | util.timer: Fix corner case of timer not repeating if it returns <= 0 | Matthew Wild | 2011-09-22 | 1 | -1/+4 |
| | |||||
* | util.timer: Activate higher timer precision. | Waqas Hussain | 2010-12-02 | 1 | -2/+11 |
| | |||||
* | util.timer: When using libevent hold onto the event handle to stop it being ↵ | Matthew Wild | 2010-04-07 | 1 | -2/+3 |
| | | | | collected (and the timer stopping). Fixes BOSH ghosts, thanks Flo, niekie, waqas. | ||||
* | Merge 0.6->0.7 | Matthew Wild | 2010-03-22 | 1 | -2/+2 |
|\ | |||||
| * | Update copyright headers for 2010 | Matthew Wild | 2010-03-22 | 1 | -2/+2 |
| | | |||||
* | | util.timer: Use luaevent's built-in method of repeating an event (fixes a ↵ | Matthew Wild | 2009-12-17 | 1 | -2/+2 |
| | | | | | | | | weird crash) | ||||
* | | util.timer: Fix libevent timers (event.base doesn't exist...) | Matthew Wild | 2009-11-21 | 1 | -1/+2 |
| | | |||||
* | | util.timer: Use libevent for lightweight timers if available and configured ↵ | Matthew Wild | 2009-11-21 | 1 | -24/+44 |
|/ | | | | (use_libevent option) | ||||
* | util.timer: Pass current_time to timer callbacks | Matthew Wild | 2009-10-03 | 1 | -1/+1 |
| | |||||
* | Remove version number from copyright headers | Matthew Wild | 2009-07-10 | 1 | -1/+1 |
| | |||||
* | 0.3->0.4 | Matthew Wild | 2009-03-20 | 1 | -1/+1 |
| | |||||
* | util.timer: More small fixes I forgot to commit | Matthew Wild | 2009-02-26 | 1 | -4/+2 |
| | |||||
* | util.timer: Fix crash when loaded but no tasks set, fix skipping some tasks ↵ | Matthew Wild | 2009-02-26 | 1 | -7/+13 |
| | | | | when multiple set, and one removed | ||||
* | Added util/timer.lua - a timer API | Waqas Hussain | 2009-02-21 | 1 | -0/+47 |