Lines Matching defs:eonce
876 struct event_once *eonce = LIST_FIRST(&base->once_events);
877 LIST_REMOVE(eonce, next_once);
878 mm_free(eonce);
1985 struct event_once *eonce = arg;
1987 (*eonce->cb)(fd, events, eonce->arg);
1988 EVBASE_ACQUIRE_LOCK(eonce->ev.ev_base, th_base_lock);
1989 LIST_REMOVE(eonce, next_once);
1990 EVBASE_RELEASE_LOCK(eonce->ev.ev_base, th_base_lock);
1991 event_debug_unassign(&eonce->ev);
1992 mm_free(eonce);
2010 struct event_once *eonce;
2019 if ((eonce = mm_calloc(1, sizeof(struct event_once))) == NULL)
2022 eonce->cb = callback;
2023 eonce->arg = arg;
2026 evtimer_assign(&eonce->ev, base, event_once_cb, eonce);
2038 event_assign(&eonce->ev, base, fd, events, event_once_cb, eonce);
2041 mm_free(eonce);
2048 event_active_nolock_(&eonce->ev, EV_TIMEOUT, 1);
2050 res = event_add_nolock_(&eonce->ev, tv, 0);
2053 mm_free(eonce);
2056 LIST_INSERT_HEAD(&base->once_events, eonce, next_once);