Lines Matching refs:now
1451 const struct timeval *now, struct event *head) in common_timeout_schedule() argument
1464 struct timeval now; in common_timeout_callback() local
1469 gettime(base, &now); in common_timeout_callback()
1472 if (!ev || ev->ev_timeout.tv_sec > now.tv_sec || in common_timeout_callback()
1473 (ev->ev_timeout.tv_sec == now.tv_sec && in common_timeout_callback()
1474 (ev->ev_timeout.tv_usec&MICROSECONDS_MASK) > now.tv_usec)) in common_timeout_callback()
1480 common_timeout_schedule(ctl, &now, ev); in common_timeout_callback()
1577 struct timeval run_at, relative_to, delay, now; in event_persist_closure() local
1581 gettime(base, &now); in event_persist_closure()
1590 relative_to = now; in event_persist_closure()
1597 relative_to = now; in event_persist_closure()
1601 if (evutil_timercmp(&run_at, &now, <)) { in event_persist_closure()
1607 evutil_timeradd(&now, &delay, &run_at); in event_persist_closure()
1741 struct timeval now; in event_process_active_single_queue() local
1743 gettime(base, &now); in event_process_active_single_queue()
1744 if (evutil_timercmp(&now, endtime, >=)) in event_process_active_single_queue()
2667 struct timeval now; in event_add_nolock_() local
2707 gettime(base, &now); in event_add_nolock_()
2720 evutil_timeradd(&now, &tmp, &ev->ev_timeout); in event_add_nolock_()
2724 evutil_timeradd(&now, tv, &ev->ev_timeout); in event_add_nolock_()
2741 common_timeout_schedule(ctl, &now, ev); in event_add_nolock_()
2754 evutil_timercmp(&top->ev_timeout, &now, <)) in event_add_nolock_()
3146 struct timeval now; in timeout_next() local
3159 if (gettime(base, &now) == -1) { in timeout_next()
3164 if (evutil_timercmp(&ev->ev_timeout, &now, <=)) { in timeout_next()
3169 evutil_timersub(&ev->ev_timeout, &now, tv); in timeout_next()
3184 struct timeval now; in timeout_process() local
3191 gettime(base, &now); in timeout_process()
3194 if (evutil_timercmp(&ev->ev_timeout, &now, >)) in timeout_process()