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

Comparing libev/ev.c (file contents):
Revision 1.285 by root, Wed Apr 15 19:35:53 2009 UTC vs.
Revision 1.287 by root, Mon Apr 20 19:45:58 2009 UTC

2034 if (expect_true (!(flags & EVLOOP_NONBLOCK || idleall || !activecnt))) 2034 if (expect_true (!(flags & EVLOOP_NONBLOCK || idleall || !activecnt)))
2035 { 2035 {
2036 /* update time to cancel out callback processing overhead */ 2036 /* update time to cancel out callback processing overhead */
2037 time_update (EV_A_ 1e100); 2037 time_update (EV_A_ 1e100);
2038 2038
2039 waittime = MAX_BLOCKTIME;
2040
2039 if (timercnt) 2041 if (timercnt)
2040 { 2042 {
2041 ev_tstamp to = ANHE_at (timers [HEAP0]) - mn_now + backend_fudge; 2043 ev_tstamp to = ANHE_at (timers [HEAP0]) - mn_now + backend_fudge;
2042 if (waittime > to) waittime = to; 2044 if (waittime > to) waittime = to;
2043 } 2045 }
2133ev_resume (EV_P) 2135ev_resume (EV_P)
2134{ 2136{
2135 ev_tstamp mn_prev = mn_now; 2137 ev_tstamp mn_prev = mn_now;
2136 2138
2137 ev_now_update (EV_A); 2139 ev_now_update (EV_A);
2138 printf ("update %f\n", mn_now - mn_prev);//D
2139 timers_reschedule (EV_A_ mn_now - mn_prev); 2140 timers_reschedule (EV_A_ mn_now - mn_prev);
2141#if EV_PERIODIC_ENABLE
2140 periodics_reschedule (EV_A); 2142 periodics_reschedule (EV_A);
2143#endif
2141} 2144}
2142 2145
2143/*****************************************************************************/ 2146/*****************************************************************************/
2144 2147
2145inline_size void 2148inline_size void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines