Lines Matching refs:ev2

526 	struct event ev, ev2;  in test_multiple()  local
541 event_set(&ev2, pair[1], EV_READ, multiple_read_cb, &ev2); in test_multiple()
542 if (event_add(&ev2, NULL) == -1) in test_multiple()
555 struct event ev, ev2; in test_persistent() local
570 event_set(&ev2, pair[1], EV_READ|EV_PERSIST, multiple_read_cb, &ev2); in test_persistent()
571 if (event_add(&ev2, NULL) == -1) in test_persistent()
1267 struct event ev1, ev2; in test_signal_switchbase() local
1275 evsignal_set(&ev2, SIGUSR1, signal_cb, &ev2); in test_signal_switchbase()
1277 event_base_set(base2, &ev2) || in test_signal_switchbase()
1279 event_add(&ev2, NULL)) { in test_signal_switchbase()
1285 tt_ptr_op(event_get_base(&ev2), ==, base2); in test_signal_switchbase()
1644 struct event ev2; in test_event_base_get_max_events() local
1657 event_assign(&ev2, base, -1, EV_READ, event_selfarg_cb, in test_event_base_get_max_events()
1661 event_add(&ev2, &qsec); in test_event_base_get_max_events()
1662 event_del(&ev2); in test_event_base_get_max_events()
1861 struct event *ev1 = NULL, *ev2 = NULL; in test_active_later() local
1865 ev2 = event_new(data->base, data->pair[1], EV_WRITE|EV_PERSIST, write_a_byte_cb, NULL); in test_active_later()
1869 event_add(ev2, NULL); in test_active_later()
1900 if (ev2) in test_active_later()
1901 event_free(ev2); in test_active_later()
2117 struct event ev1, ev2; in test_loopbreak() local
2126 evtimer_set(&ev2, fail_cb, NULL); in test_loopbreak()
2127 evtimer_add(&ev2, &tv); in test_loopbreak()
2135 evtimer_del(&ev2); in test_loopbreak()
2164 struct event ev1, ev2; in test_nonpersist_readd() local
2168 memset(&ev2, 0, sizeof(ev2)); in test_nonpersist_readd()
2170 tt_assert(!event_assign(&ev1, data->base, data->pair[0], EV_READ, re_add_read_cb, &ev2)); in test_nonpersist_readd()
2171 tt_assert(!event_assign(&ev2, data->base, data->pair[1], EV_READ, re_add_read_cb, &ev1)); in test_nonpersist_readd()
2177 tt_int_op(event_add(&ev2, NULL), ==, 0); in test_nonpersist_readd()
2188 tt_assert(event_pending(&ev1, EV_READ, NULL) && !event_pending(&ev2, EV_READ, NULL)); in test_nonpersist_readd()
2190 tt_assert(event_pending(&ev2, EV_READ, NULL) && !event_pending(&ev1, EV_READ, NULL)); in test_nonpersist_readd()
2196 if (event_initialized(&ev2)) in test_nonpersist_readd()
2197 event_del(&ev2); in test_nonpersist_readd()
2959 struct event *ev1=NULL, *ev2=NULL; in test_dup_fd() local
2971 ev2 = event_new(base, dfd, EV_READ|EV_PERSIST, dfd_cb, &ev2_got); in test_dup_fd()
2974 event_add(ev2, NULL); in test_dup_fd()
2983 event_del(ev2); in test_dup_fd()
2995 event_free(ev2); in test_dup_fd()
2996 ev2 = event_new(base, dfd, EV_WRITE|EV_PERSIST, dfd_cb, &ev2_got); in test_dup_fd()
2997 event_add(ev2, NULL); in test_dup_fd()
3006 if (ev2) in test_dup_fd()
3007 event_free(ev2); in test_dup_fd()
3292 struct event *ev1=NULL, *ev2=NULL, *ev3=NULL; in test_gettimeofday_cached() local
3313 ev2 = event_new(base, -1, 0, cache_time_cb, &tv2); in test_gettimeofday_cached()
3317 event_active(ev2, EV_TIMEOUT, 1); in test_gettimeofday_cached()
3336 if (ev2) in test_gettimeofday_cached()
3337 event_free(ev2); in test_gettimeofday_cached()
3359 struct event *ev1 = NULL, *ev2 = NULL; in test_evmap_invalid_slots() local
3367 ev2 = evsignal_new(base, NSIG, dummy_read_cb, (void *)base); in test_evmap_invalid_slots()
3369 tt_assert(ev2); in test_evmap_invalid_slots()
3371 e2 = event_add(ev2, NULL); in test_evmap_invalid_slots()
3387 event_free(ev2); in test_evmap_invalid_slots()
3399 struct event *ev1 = NULL, *ev2 = NULL, *ev3 = NULL, *ev4 = NULL; in test_active_by_fd() local
3421 ev2 = event_new(base, data->pair[0], EV_WRITE, tabf_cb, &e2); in test_active_by_fd()
3425 tt_assert(ev2); in test_active_by_fd()
3435 event_add(ev2, NULL); in test_active_by_fd()
3466 if (ev2) in test_active_by_fd()
3467 event_free(ev2); in test_active_by_fd()