Lines Matching refs:new_ctl
1493 struct common_timeout_list *new_ctl; in event_base_init_common_timeout() local
1534 new_ctl = mm_calloc(1, sizeof(struct common_timeout_list)); in event_base_init_common_timeout()
1535 if (!new_ctl) { in event_base_init_common_timeout()
1539 TAILQ_INIT(&new_ctl->events); in event_base_init_common_timeout()
1540 new_ctl->duration.tv_sec = duration->tv_sec; in event_base_init_common_timeout()
1541 new_ctl->duration.tv_usec = in event_base_init_common_timeout()
1544 evtimer_assign(&new_ctl->timeout_event, base, in event_base_init_common_timeout()
1545 common_timeout_callback, new_ctl); in event_base_init_common_timeout()
1546 new_ctl->timeout_event.ev_flags |= EVLIST_INTERNAL; in event_base_init_common_timeout()
1547 event_priority_set(&new_ctl->timeout_event, 0); in event_base_init_common_timeout()
1548 new_ctl->base = base; in event_base_init_common_timeout()
1549 base->common_timeout_queues[base->n_common_timeouts++] = new_ctl; in event_base_init_common_timeout()
1550 result = &new_ctl->duration; in event_base_init_common_timeout()