Lines Matching defs:eonce
833 struct event_once *eonce = LIST_FIRST(&base->once_events);
834 LIST_REMOVE(eonce, next_once);
835 mm_free(eonce);
1938 struct event_once *eonce = arg;
1940 (*eonce->cb)(fd, events, eonce->arg);
1941 EVBASE_ACQUIRE_LOCK(eonce->ev.ev_base, th_base_lock);
1942 LIST_REMOVE(eonce, next_once);
1943 EVBASE_RELEASE_LOCK(eonce->ev.ev_base, th_base_lock);
1944 event_debug_unassign(&eonce->ev);
1945 mm_free(eonce);
1963 struct event_once *eonce;
1972 if ((eonce = mm_calloc(1, sizeof(struct event_once))) == NULL)
1975 eonce->cb = callback;
1976 eonce->arg = arg;
1979 evtimer_assign(&eonce->ev, base, event_once_cb, eonce);
1991 event_assign(&eonce->ev, base, fd, events, event_once_cb, eonce);
1994 mm_free(eonce);
2001 event_active_nolock_(&eonce->ev, EV_TIMEOUT, 1);
2003 res = event_add_nolock_(&eonce->ev, tv, 0);
2006 mm_free(eonce);
2009 LIST_INSERT_HEAD(&base->once_events, eonce, next_once);