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

Comparing libev/ev.pod (file contents):
Revision 1.239 by root, Tue Apr 21 14:14:19 2009 UTC vs.
Revision 1.240 by root, Sat Apr 25 14:12:48 2009 UTC

1465year, it will still time out after (roughly) one hour. "Roughly" because 1465year, it will still time out after (roughly) one hour. "Roughly" because
1466detecting time jumps is hard, and some inaccuracies are unavoidable (the 1466detecting time jumps is hard, and some inaccuracies are unavoidable (the
1467monotonic clock option helps a lot here). 1467monotonic clock option helps a lot here).
1468 1468
1469The callback is guaranteed to be invoked only I<after> its timeout has 1469The callback is guaranteed to be invoked only I<after> its timeout has
1470passed. If multiple timers become ready during the same loop iteration 1470passed (not I<at>, so on systems with very low-resolution clocks this
1471then the ones with earlier time-out values are invoked before ones with 1471might introduce a small delay). If multiple timers become ready during the
1472same loop iteration then the ones with earlier time-out values are invoked
1472later time-out values (but this is no longer true when a callback calls 1473before ones with later time-out values (but this is no longer true when a
1473C<ev_loop> recursively). 1474callback calls C<ev_loop> recursively).
1474 1475
1475=head3 Be smart about timeouts 1476=head3 Be smart about timeouts
1476 1477
1477Many real-world problems involve some kind of timeout, usually for error 1478Many real-world problems involve some kind of timeout, usually for error
1478recovery. A typical example is an HTTP request - if the other side hangs, 1479recovery. A typical example is an HTTP request - if the other side hangs,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines