ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.393 by root, Sat Jan 21 12:23:45 2012 UTC vs.
Revision 1.394 by root, Tue Jan 24 16:37:12 2012 UTC

2108keep up with the timer (because it takes longer than those 10 seconds to 2108keep up with the timer (because it takes longer than those 10 seconds to
2109do stuff) the timer will not fire more than once per event loop iteration. 2109do stuff) the timer will not fire more than once per event loop iteration.
2110 2110
2111=item ev_timer_again (loop, ev_timer *) 2111=item ev_timer_again (loop, ev_timer *)
2112 2112
2113This will act as if the timer timed out and restarts it again if it is 2113This will act as if the timer timed out, and restarts it again if it is
2114repeating. The exact semantics are: 2114repeating. It basically works like calling C<ev_timer_stop>, updating the
2115timeout to the C<repeat> value and calling C<ev_timer_start>.
2115 2116
2117The exact semantics are as in the wollofing rules, all of which will be
2118applied to the watcher:
2119
2120=over 4
2121
2116If the timer is pending, its pending status is cleared. 2122=item If the timer is pending, the pending status is always cleared.
2117 2123
2118If the timer is started but non-repeating, stop it (as if it timed out). 2124=item If the timer is started but non-repeating, stop it (as if it timed
2125out, without invoking it).
2119 2126
2120If the timer is repeating, either start it if necessary (with the 2127=item If the timer is repeating, make the C<repeat> value the new timeout
2121C<repeat> value), or reset the running timer to the C<repeat> value. 2128and start the timer, if necessary.
2129
2130=back
2122 2131
2123This sounds a bit complicated, see L<Be smart about timeouts>, above, for a 2132This sounds a bit complicated, see L<Be smart about timeouts>, above, for a
2124usage example. 2133usage example.
2125 2134
2126=item ev_tstamp ev_timer_remaining (loop, ev_timer *) 2135=item ev_tstamp ev_timer_remaining (loop, ev_timer *)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines