Lines Matching full:ev
57 event_finalize_callback_1(struct event *ev, void *arg) in event_finalize_callback_1() argument
61 (void)ev; in event_finalize_callback_1()
78 struct event *ev; in test_fin_cb_invoked() local
87 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
89 event_free_finalize(0, ev, event_finalize_callback_1); in test_fin_cb_invoked()
102 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
105 event_active(ev, EV_TIMEOUT, 1); in test_fin_cb_invoked()
117 event_active(ev, EV_TIMEOUT, 1); in test_fin_cb_invoked()
119 event_free_finalize(0, ev, event_finalize_callback_1); in test_fin_cb_invoked()
132 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
133 event_add(ev, &ten_sec); in test_fin_cb_invoked()
134 event_free_finalize(0, ev, event_finalize_callback_1); in test_fin_cb_invoked()
143 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
145 event_add(ev, &ten_sec); in test_fin_cb_invoked()
146 event_free_finalize(0, ev, event_finalize_callback_1); in test_fin_cb_invoked()
150 event_del(ev); in test_fin_cb_invoked()
195 struct event *ev, *ev2; in test_fin_free_finalize()
206 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_free_finalize()
208 tfff_p1 = ev; in test_fin_free_finalize()
210 event_free_finalize(0, ev, event_finalize_callback_1); in test_fin_free_finalize()
232 struct event *ev; member
237 event_finalize_callback_2(struct event *ev, void *arg) in event_finalize_callback_2() argument
241 event_free(ev); in event_finalize_callback_2()
247 event_finalize(0, evc->ev, event_finalize_callback_2); in timer_callback_2()
262 evc2.ev2 = evc1.ev = evtimer_new(base, timer_callback_2, &evc1); in test_fin_within_cb()
263 evc1.ev2 = evc2.ev = evtimer_new(base, timer_callback_2, &evc2); in test_fin_within_cb()
268 event_active(evc1.ev, EV_TIMEOUT, 1); in test_fin_within_cb()
269 event_active(evc2.ev, EV_TIMEOUT, 1); in test_fin_within_cb()
278 evc2.ev2 = evc1.ev = event_new(base, -1, EV_PERSIST, timer_callback_2, &evc1); in test_fin_within_cb()
279 evc1.ev2 = evc2.ev = event_new(base, -1, EV_PERSIST, timer_callback_2, &evc2); in test_fin_within_cb()
281 event_active(evc1.ev, EV_TIMEOUT, 1); in test_fin_within_cb()
282 event_active(evc2.ev, EV_TIMEOUT, 1); in test_fin_within_cb()
294 event_finalize_callback_free(struct event *ev, void *arg) in event_finalize_callback_free() argument
299 err = event_assign(ev, base, -1, EV_TIMEOUT, NULL, NULL); in event_finalize_callback_free()
303 free(ev); in event_finalize_callback_free()
315 struct event *ev; in test_fin_debug_use_after_free() local
317 tt_ptr_op(ev = event_new(base, -1, EV_TIMEOUT, NULL, base), !=, NULL); in test_fin_debug_use_after_free()
318 tt_int_op(event_add(ev, NULL), ==, 0); in test_fin_debug_use_after_free()
319 tt_int_op(event_finalize(0, ev, event_finalize_callback_free), ==, 0); in test_fin_debug_use_after_free()
328 tt_int_op(event_add(ev, NULL), ==, 0); in test_fin_debug_use_after_free()
331 tt_int_op(event_finalize(0, ev, event_finalize_callback_free), ==, 0); in test_fin_debug_use_after_free()