Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |