Hello Denis,
Friday, June 19, 2009, 1:55:48 PM, you wrote:
> Hello Marc,
> Friday, June 19, 2009, 1:16:31 AM, you wrote:
>> On Thu, Jun 18, 2009 at 03:32:33PM +0200, Gabriel Kerneis
>> <[email protected]> wrote:
>>> a few typos I spotted in the doc:
>> thanks, fixed!
> Another yet:
> "At start:
> - ev_timer_init (timer, callback);
> + ev_init (timer, callback);
> timer->repeat = 60.;
> ev_timer_again (loop, timer); ..."
> ---
> "
> - ev_timer_init (timer, callback);
> + ev_init (timer, callback);
> last_activity = ev_now (loop);
> callback (loop, timer, EV_TIMEOUT); ..."
Patch is better.
--
Best regards,
Denis mailto:[email protected]
Index: ev.pod
===================================================================
RCS file: /schmorpforge/libev/ev.pod,v
retrieving revision 1.242
diff -u -r1.242 ev.pod
--- ev.pod 18 Jun 2009 18:16:54 -0000 1.242
+++ ev.pod 19 Jun 2009 14:12:26 -0000
@@ -1525,7 +1525,7 @@
At start:
- ev_timer_init (timer, callback);
+ ev_init (timer, callback);
timer->repeat = 60.;
ev_timer_again (loop, timer);
@@ -1597,7 +1597,7 @@
to the current time (meaning we just have some activity :), then call the
callback, which will "do the right thing" and start the timer:
- ev_timer_init (timer, callback);
+ ev_init (timer, callback);
last_activity = ev_now (loop);
callback (loop, timer, EV_TIMEOUT);
@@ -2473,7 +2473,7 @@
adns_beforepoll (ads, fds, &nfd, &timeout, timeval_from (ev_time ()));
/* the callback is illegal, but won't be called as we stop during check */
- ev_timer_init (&tw, 0, timeout * 1e-3);
+ ev_timer_init (&tw, 0, timeout * 1e-3, 0.);
ev_timer_start (loop, &tw);
// create one ev_io per pollfd
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev