Home | History | Annotate | Download | only in libevent

Lines Matching refs:EV_TIMEOUT

1148 	struct timeval timeout = head->ev_timeout;
1167 if (!ev || ev->ev_timeout.tv_sec > now.tv_sec ||
1168 (ev->ev_timeout.tv_sec == now.tv_sec &&
1169 (ev->ev_timeout.tv_usec&MICROSECONDS_MASK) > now.tv_usec))
1172 event_active_nolock(ev, EV_TIMEOUT, 1);
1275 EVUTIL_ASSERT(is_same_common_timeout(&ev->ev_timeout,
1278 if (is_common_timeout(&ev->ev_timeout, base)) {
1282 if (ev->ev_res & EV_TIMEOUT) {
1283 relative_to = ev->ev_timeout;
1290 if (ev->ev_res & EV_TIMEOUT) {
1291 relative_to = ev->ev_timeout;
1490 return (event_once(-1, EV_TIMEOUT, event_loopexit_cb,
1497 return (event_base_once(event_base, -1, EV_TIMEOUT, event_loopexit_cb,
1708 if (events == EV_TIMEOUT) {
1884 flags |= EV_TIMEOUT;
1886 event &= (EV_TIMEOUT|EV_READ|EV_WRITE|EV_SIGNAL);
1889 if (tv != NULL && (flags & event & EV_TIMEOUT)) {
1890 struct timeval tmp = ev->ev_timeout;
2061 tv ? "EV_TIMEOUT " : " ",
2135 (ev->ev_res & EV_TIMEOUT)) {
2153 ev->ev_timeout = *tv;
2157 evutil_timeradd(&now, &tmp, &ev->ev_timeout);
2158 ev->ev_timeout.tv_usec |=
2161 evutil_timeradd(&now, tv, &ev->ev_timeout);
2171 get_common_timeout_list(base, &ev->ev_timeout);
2419 if (evutil_timercmp(&ev->ev_timeout, &now, <=)) {
2424 evutil_timersub(&ev->ev_timeout, &now, tv);
2471 struct timeval *ev_tv = &(**pev).ev_timeout;
2480 struct timeval *ev_tv = &ev->ev_timeout;
2507 if (evutil_timercmp(&ev->ev_timeout, &now, >))
2515 event_active_nolock(ev, EV_TIMEOUT, 1);
2545 if (is_common_timeout(&ev->ev_timeout, base)) {
2547 get_common_timeout_list(base, &ev->ev_timeout);
2579 is_same_common_timeout(&e->ev_timeout, &ev->ev_timeout));
2580 if (evutil_timercmp(&ev->ev_timeout, &e->ev_timeout, >=)) {
2619 if (is_common_timeout(&ev->ev_timeout, base)) {
2621 get_common_timeout_list(base, &ev->ev_timeout);
2857 (e->ev_events&EV_TIMEOUT)?" Timeout":"",
2871 (e->ev_res&EV_TIMEOUT)?" Timeout active":"");
2923 EVUTIL_ASSERT(ev->ev_flags & EV_TIMEOUT);
2924 EVUTIL_ASSERT(evutil_timercmp(&p_ev->ev_timeout, &ev->ev_timeout, <=));
2934 EVUTIL_ASSERT(evutil_timercmp(&last->ev_timeout, &ev->ev_timeout, <=));
2935 EVUTIL_ASSERT(ev->ev_flags & EV_TIMEOUT);
2936 EVUTIL_ASSERT(is_common_timeout(&ev->ev_timeout,base));
2937 EVUTIL_ASSERT(COMMON_TIMEOUT_IDX(&ev->ev_timeout) == i);