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

Comparing libev/ev.c (file contents):
Revision 1.524 by root, Wed Jan 22 02:20:47 2020 UTC vs.
Revision 1.525 by root, Wed Jan 22 14:09:07 2020 UTC

3043 /* but maybe in the future we want the full treatment. */ 3043 /* but maybe in the future we want the full treatment. */
3044 /* 3044 /*
3045 now_floor = EV_TS_CONST (0.); 3045 now_floor = EV_TS_CONST (0.);
3046 time_update (EV_A_ EV_TSTAMP_HUGE); 3046 time_update (EV_A_ EV_TSTAMP_HUGE);
3047 */ 3047 */
3048#if EV_PERIODIC_ENABLE
3048 periodics_reschedule (EV_A); 3049 periodics_reschedule (EV_A);
3050#endif
3049} 3051}
3050 3052
3051ecb_noinline ecb_cold 3053ecb_noinline ecb_cold
3052static void 3054static void
3053evtimerfd_init (EV_P) 3055evtimerfd_init (EV_P)
4095#if EV_USE_TIMERFD 4097#if EV_USE_TIMERFD
4096 /* sleep a lot longer when we can reliably detect timejumps */ 4098 /* sleep a lot longer when we can reliably detect timejumps */
4097 if (ecb_expect_true (timerfd >= 0)) 4099 if (ecb_expect_true (timerfd >= 0))
4098 waittime = EV_TS_CONST (MAX_BLOCKTIME2); 4100 waittime = EV_TS_CONST (MAX_BLOCKTIME2);
4099#endif 4101#endif
4102#if !EV_PERIODIC_ENABLE
4103 /* without periodics but with monotonic clock there is no need */
4104 /* for any time jump detection, so sleep longer */
4105 if (ecb_expect_true (have_monotonic))
4106 waittime = EV_TS_CONST (MAX_BLOCKTIME2);
4107#endif
4100 4108
4101 if (timercnt) 4109 if (timercnt)
4102 { 4110 {
4103 ev_tstamp to = ANHE_at (timers [HEAP0]) - mn_now; 4111 ev_tstamp to = ANHE_at (timers [HEAP0]) - mn_now;
4104 if (waittime > to) waittime = to; 4112 if (waittime > to) waittime = to;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines