diff options
-rw-r--r-- | ev.c | 49 | ||||
-rw-r--r-- | ev.pod | 8 |
2 files changed, 28 insertions, 29 deletions
@@ -1372,7 +1372,6 @@ ev_loop_fork (EV_P) { postfork = 1; /* must be in line with ev_default_fork */ } - #endif #if EV_MULTIPLICITY @@ -1463,6 +1462,29 @@ call_pending (EV_P) } } +#if EV_IDLE_ENABLE +void inline_size +idle_reify (EV_P) +{ + if (expect_false (idleall)) + { + int pri; + + for (pri = NUMPRI; pri--; ) + { + if (pendingcnt [pri]) + break; + + if (idlecnt [pri]) + { + queue_events (EV_A_ (W *)idles [pri], idlecnt [pri], EV_IDLE); + break; + } + } + } +} +#endif + void inline_size timers_reify (EV_P) { @@ -1543,29 +1565,6 @@ periodics_reschedule (EV_P) } #endif -#if EV_IDLE_ENABLE -void inline_size -idle_reify (EV_P) -{ - if (expect_false (idleall)) - { - int pri; - - for (pri = NUMPRI; pri--; ) - { - if (pendingcnt [pri]) - break; - - if (idlecnt [pri]) - { - queue_events (EV_A_ (W *)idles [pri], idlecnt [pri], EV_IDLE); - break; - } - } - } -} -#endif - void inline_speed time_update (EV_P_ ev_tstamp max_block) { @@ -1601,7 +1600,7 @@ time_update (EV_P_ ev_tstamp max_block) { rtmn_diff = ev_rt_now - mn_now; - if (fabs (odiff - rtmn_diff) < MIN_TIMEJUMP) + if (expect_true (fabs (odiff - rtmn_diff) < MIN_TIMEJUMP)) return; /* all is well */ ev_rt_now = ev_time (); @@ -3321,10 +3321,10 @@ millions of watchers. =item C<double> must hold a time value in seconds with enough accuracy -The type C<double> is used to represent timestamps. It is required to have -at least 51 bits of mantissa, which is good enough for at least into the -year 4000. This requirement is fulfilled by implementations implementing -IEEE 754 (basically all existing ones). +The type C<double> is used to represent timestamps. It is required to +have at least 51 bits of mantissa (and 9 bits of exponent), which is good +enough for at least into the year 4000. This requirement is fulfilled by +implementations implementing IEEE 754 (basically all existing ones). =back |