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

Comparing libev/ev.pod (file contents):
Revision 1.294 by root, Thu Jun 24 19:22:26 2010 UTC vs.
Revision 1.295 by root, Sat Jun 26 09:56:57 2010 UTC

1774 callback (loop, timer, EV_TIMER); 1774 callback (loop, timer, EV_TIMER);
1775 1775
1776And when there is some activity, simply store the current time in 1776And when there is some activity, simply store the current time in
1777C<last_activity>, no libev calls at all: 1777C<last_activity>, no libev calls at all:
1778 1778
1779 last_actiivty = ev_now (loop); 1779 last_activity = ev_now (loop);
1780 1780
1781This technique is slightly more complex, but in most cases where the 1781This technique is slightly more complex, but in most cases where the
1782time-out is unlikely to be triggered, much more efficient. 1782time-out is unlikely to be triggered, much more efficient.
1783 1783
1784Changing the timeout is trivial as well (if it isn't hard-coded in the 1784Changing the timeout is trivial as well (if it isn't hard-coded in the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines