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

Comparing libev/ev.pod (file contents):
Revision 1.12 by root, Mon Nov 12 08:35:18 2007 UTC vs.
Revision 1.13 by root, Mon Nov 12 08:35:36 2007 UTC

562 562
563NOTE: I<This callback MUST NOT stop or destroy the periodic or any other 563NOTE: I<This callback MUST NOT stop or destroy the periodic or any other
564periodic watcher, ever, or make any event loop modifications>. If you need 564periodic watcher, ever, or make any event loop modifications>. If you need
565to stop it, return C<now + 1e30> (or so, fudge fudge) and stop it afterwards. 565to stop it, return C<now + 1e30> (or so, fudge fudge) and stop it afterwards.
566 566
567Also, I<<this callback must always return a time that is later than the 567Also, I<< this callback must always return a time that is later than the
568passed C<now> value >>. Not even C<now> itself will be ok. 568passed C<now> value >>. Not even C<now> itself will be ok.
569 569
570Its prototype is c<ev_tstamp (*reschedule_cb)(struct ev_periodic *w, 570Its prototype is C<ev_tstamp (*reschedule_cb)(struct ev_periodic *w,
571ev_tstamp now)>, e.g.: 571ev_tstamp now)>, e.g.:
572 572
573 static ev_tstamp my_rescheduler (struct ev_periodic *w, ev_tstamp now) 573 static ev_tstamp my_rescheduler (struct ev_periodic *w, ev_tstamp now)
574 { 574 {
575 return now + 60.; 575 return now + 60.;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines