Lines Matching refs:base

76 	struct event_base *base = data->base;  in test_fin_cb_invoked()  local
87 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
90 event_callback_finalize_(base, 0, &evcb, callback_finalize_callback_1); in test_fin_cb_invoked()
92 event_base_dispatch(base); in test_fin_cb_invoked()
98 event_base_assert_ok_(base); in test_fin_cb_invoked()
102 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
106 event_callback_activate_(base, &evcb); in test_fin_cb_invoked()
108 event_base_dispatch(base); in test_fin_cb_invoked()
113 event_base_assert_ok_(base); in test_fin_cb_invoked()
118 event_callback_activate_(base, &evcb); in test_fin_cb_invoked()
120 event_callback_finalize_(base, 0, &evcb, callback_finalize_callback_1); in test_fin_cb_invoked()
122 event_base_dispatch(base); in test_fin_cb_invoked()
128 event_base_assert_ok_(base); in test_fin_cb_invoked()
132 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
136 event_base_dispatch(base); in test_fin_cb_invoked()
140 event_base_assert_ok_(base); in test_fin_cb_invoked()
143 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_cb_invoked()
144 evtimer_assign(&ev2, base, timer_callback, &ev_called); in test_fin_cb_invoked()
153 event_base_dispatch(base); in test_fin_cb_invoked()
156 event_base_assert_ok_(base); in test_fin_cb_invoked()
194 struct event_base *base = NULL; in test_fin_free_finalize()
203 base = event_base_new(); in test_fin_free_finalize()
204 tt_assert(base); in test_fin_free_finalize()
206 ev = evtimer_new(base, timer_callback, &ev_called); in test_fin_free_finalize()
207 ev2 = evtimer_new(base, timer_callback, &ev2_called); in test_fin_free_finalize()
213 event_base_dispatch(base); in test_fin_free_finalize()
218 event_base_assert_ok_(base); in test_fin_free_finalize()
225 if (base) in test_fin_free_finalize()
226 event_base_free(base); in test_fin_free_finalize()
258 struct event_base *base = data->base; in test_fin_within_cb() local
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()
271 event_base_dispatch(base); in test_fin_within_cb()
275 event_base_assert_ok_(base); 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()
284 event_base_dispatch(base); in test_fin_within_cb()
288 event_base_assert_ok_(base); in test_fin_within_cb()
296 struct event_base *base = arg; in event_finalize_callback_free() local
298 if (base) { in event_finalize_callback_free()
299 err = event_assign(ev, base, -1, EV_TIMEOUT, NULL, NULL); in event_finalize_callback_free()
314 struct event_base *base = data->base; 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()
322 event_base_dispatch(base); in test_fin_debug_use_after_free()
323 event_base_assert_ok_(base); in test_fin_debug_use_after_free()
332 event_base_dispatch(base); in test_fin_debug_use_after_free()
333 event_base_assert_ok_(base); in test_fin_debug_use_after_free()
352 struct event_base *base = data->base;
363 ev1 = evtimer_new(base, timer_callback, &ev1_count);
364 ev1 = evtimer_new(base, timer_callback, &ev2_count);
374 n = event_callback_finalize_many(base, 4, array,