Lines Matching refs:new_ctl
1450 struct common_timeout_list *new_ctl; in event_base_init_common_timeout() local
1491 new_ctl = mm_calloc(1, sizeof(struct common_timeout_list)); in event_base_init_common_timeout()
1492 if (!new_ctl) { in event_base_init_common_timeout()
1496 TAILQ_INIT(&new_ctl->events); in event_base_init_common_timeout()
1497 new_ctl->duration.tv_sec = duration->tv_sec; in event_base_init_common_timeout()
1498 new_ctl->duration.tv_usec = in event_base_init_common_timeout()
1501 evtimer_assign(&new_ctl->timeout_event, base, in event_base_init_common_timeout()
1502 common_timeout_callback, new_ctl); in event_base_init_common_timeout()
1503 new_ctl->timeout_event.ev_flags |= EVLIST_INTERNAL; in event_base_init_common_timeout()
1504 event_priority_set(&new_ctl->timeout_event, 0); in event_base_init_common_timeout()
1505 new_ctl->base = base; in event_base_init_common_timeout()
1506 base->common_timeout_queues[base->n_common_timeouts++] = new_ctl; in event_base_init_common_timeout()
1507 result = &new_ctl->duration; in event_base_init_common_timeout()