Home
last modified time | relevance | path

Searched refs:eonce (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/pf/libevent/
H A Devent.c456 struct event_once *eonce = arg; in event_once_cb() local
458 (*eonce->cb)(fd, events, eonce->arg); in event_once_cb()
459 free(eonce); in event_once_cb()
468 struct event_once *eonce; in event_once() local
476 if ((eonce = calloc(1, sizeof(struct event_once))) == NULL) in event_once()
479 eonce->cb = callback; in event_once()
480 eonce->arg = arg; in event_once()
488 evtimer_set(&eonce->ev, event_once_cb, eonce); in event_once()
492 event_set(&eonce->ev, fd, events, event_once_cb, eonce); in event_once()
495 free(eonce); in event_once()
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Devent.c919 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()
[all …]
/freebsd/contrib/libevent/
H A Devent.c919 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()
[all …]