*/
static inline void tv_leaving_poll(int timeout, int interrupted)
{
- tv_update_date(timeout, interrupted);
measure_idle();
prev_cpu_time = now_cpu_time();
prev_mono_time = now_mono_time();
tv_entering_poll();
activity_count_runtime();
status = epoll_wait(epoll_fd[tid], epoll_events, global.tune.maxpollevents, wait_time);
+ tv_update_date(wait_time, status);
tv_leaving_poll(wait_time, status);
thread_harmless_end();
kev, // struct kevent *eventlist
fd, // int nevents
&timeout); // const struct timespec *timeout
+ tv_update_date(delta_ms, status);
tv_leaving_poll(delta_ms, status);
thread_harmless_end();
tv_entering_poll();
activity_count_runtime();
status = poll(poll_events, nbfd, wait_time);
+ tv_update_date(wait_time, status);
tv_leaving_poll(wait_time, status);
thread_harmless_end();
writenotnull ? tmp_evts[DIR_WR] : NULL,
NULL,
&delta);
+ tv_update_date(delta_ms, status);
tv_leaving_poll(delta_ms, status);
thread_harmless_end();