ev.c (rxvt-unicode-9.26.tar.bz2) | : | ev.c (rxvt-unicode-9.29.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 4097 | skipping to change at line 4097 | |||
/* from now on, we want a pipe-wake-up */ | /* from now on, we want a pipe-wake-up */ | |||
pipe_write_wanted = 1; | pipe_write_wanted = 1; | |||
ECB_MEMORY_FENCE; /* make sure pipe_write_wanted is visible before we ch eck for potential skips */ | ECB_MEMORY_FENCE; /* make sure pipe_write_wanted is visible before we ch eck for potential skips */ | |||
if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) | if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) | |||
{ | { | |||
waittime = EV_TS_CONST (MAX_BLOCKTIME); | waittime = EV_TS_CONST (MAX_BLOCKTIME); | |||
#if EV_USE_MONOTONIC | ||||
if (ecb_expect_true (have_monotonic)) | if (ecb_expect_true (have_monotonic)) | |||
{ | { | |||
#if EV_USE_TIMERFD | #if EV_USE_TIMERFD | |||
/* sleep a lot longer when we can reliably detect timejumps */ | /* sleep a lot longer when we can reliably detect timejumps */ | |||
if (ecb_expect_true (timerfd != -1)) | if (ecb_expect_true (timerfd != -1)) | |||
waittime = EV_TS_CONST (MAX_BLOCKTIME2); | waittime = EV_TS_CONST (MAX_BLOCKTIME2); | |||
#endif | #endif | |||
#if !EV_PERIODIC_ENABLE | #if !EV_PERIODIC_ENABLE | |||
/* without periodics but with monotonic clock there is no need * / | /* without periodics but with monotonic clock there is no need * / | |||
/* for any time jump detection, so sleep longer */ | /* for any time jump detection, so sleep longer */ | |||
waittime = EV_TS_CONST (MAX_BLOCKTIME2); | waittime = EV_TS_CONST (MAX_BLOCKTIME2); | |||
#endif | #endif | |||
} | } | |||
#endif | ||||
if (timercnt) | if (timercnt) | |||
{ | { | |||
ev_tstamp to = ANHE_at (timers [HEAP0]) - mn_now; | ev_tstamp to = ANHE_at (timers [HEAP0]) - mn_now; | |||
if (waittime > to) waittime = to; | if (waittime > to) waittime = to; | |||
} | } | |||
#if EV_PERIODIC_ENABLE | #if EV_PERIODIC_ENABLE | |||
if (periodiccnt) | if (periodiccnt) | |||
{ | { | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |