From a85da768d70ba84e2ecae596b6c2339ee85925cb Mon Sep 17 00:00:00 2001 From: root Date: Tue, 24 Jan 2012 16:37:12 +0000 Subject: *** empty log message *** --- ev.pod | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'ev.pod') diff --git a/ev.pod b/ev.pod index 7e9a2be..1f6aabb 100644 --- a/ev.pod +++ b/ev.pod @@ -2110,15 +2110,24 @@ do stuff) the timer will not fire more than once per event loop iteration. =item ev_timer_again (loop, ev_timer *) -This will act as if the timer timed out and restarts it again if it is -repeating. The exact semantics are: +This will act as if the timer timed out, and restarts it again if it is +repeating. It basically works like calling C, updating the +timeout to the C value and calling C. -If the timer is pending, its pending status is cleared. +The exact semantics are as in the wollofing rules, all of which will be +applied to the watcher: -If the timer is started but non-repeating, stop it (as if it timed out). +=over 4 + +=item If the timer is pending, the pending status is always cleared. + +=item If the timer is started but non-repeating, stop it (as if it timed +out, without invoking it). -If the timer is repeating, either start it if necessary (with the -C value), or reset the running timer to the C value. +=item If the timer is repeating, make the C value the new timeout +and start the timer, if necessary. + +=back This sounds a bit complicated, see L, above, for a usage example. -- cgit v1.2.3