Lines Matching refs:eonce
919 struct event_once *eonce = LIST_FIRST(&base->once_events); in event_base_free_() local
920 LIST_REMOVE(eonce, next_once); in event_base_free_()
921 mm_free(eonce); in event_base_free_()
2030 struct event_once *eonce = arg; in event_once_cb() local
2032 (*eonce->cb)(fd, events, eonce->arg); in event_once_cb()
2033 EVBASE_ACQUIRE_LOCK(eonce->ev.ev_base, th_base_lock); in event_once_cb()
2034 LIST_REMOVE(eonce, next_once); in event_once_cb()
2035 EVBASE_RELEASE_LOCK(eonce->ev.ev_base, th_base_lock); in event_once_cb()
2036 event_debug_unassign(&eonce->ev); in event_once_cb()
2037 mm_free(eonce); in event_once_cb()
2055 struct event_once *eonce; in event_base_once() local
2067 if ((eonce = mm_calloc(1, sizeof(struct event_once))) == NULL) in event_base_once()
2070 eonce->cb = callback; in event_base_once()
2071 eonce->arg = arg; in event_base_once()
2074 evtimer_assign(&eonce->ev, base, event_once_cb, eonce); in event_base_once()
2086 event_assign(&eonce->ev, base, fd, events, event_once_cb, eonce); in event_base_once()
2089 mm_free(eonce); in event_base_once()
2096 event_active_nolock_(&eonce->ev, EV_TIMEOUT, 1); in event_base_once()
2098 res = event_add_nolock_(&eonce->ev, tv, 0); in event_base_once()
2101 mm_free(eonce); in event_base_once()
2104 LIST_INSERT_HEAD(&base->once_events, eonce, next_once); in event_base_once()