/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_finalize.c | 79 struct event ev2; in test_fin_cb_invoked() local 144 evtimer_assign(&ev2, base, timer_callback, &ev_called); in test_fin_cb_invoked() 147 event_finalize(0, &ev2, event_finalize_callback_1); in test_fin_cb_invoked() 149 event_add(&ev2, &ten_sec); in test_fin_cb_invoked() 151 event_active(&ev2, EV_TIMEOUT, 1); in test_fin_cb_invoked() 195 struct event *ev, *ev2; in test_fin_free_finalize() 207 ev2 = evtimer_new(base, timer_callback, &ev2_called); in test_fin_free_finalize() 209 tfff_p2 = ev2; in test_fin_free_finalize() 211 event_finalize(0, ev2, event_finalize_callback_1); in test_fin_free_finalize() 222 event_free(ev2); in test_fin_free_finalize() [all …]
|
H A D | regress.c | 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() [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | regress_finalize.c | 79 struct event ev2; in test_fin_cb_invoked() local 144 evtimer_assign(&ev2, base, timer_callback, &ev_called); in test_fin_cb_invoked() 147 event_finalize(0, &ev2, event_finalize_callback_1); in test_fin_cb_invoked() 149 event_add(&ev2, &ten_sec); in test_fin_cb_invoked() 151 event_active(&ev2, EV_TIMEOUT, 1); in test_fin_cb_invoked() 195 struct event *ev, *ev2; in test_fin_free_finalize() 207 ev2 = evtimer_new(base, timer_callback, &ev2_called); in test_fin_free_finalize() 209 tfff_p2 = ev2; in test_fin_free_finalize() 211 event_finalize(0, ev2, event_finalize_callback_1); in test_fin_free_finalize() 222 event_free(ev2); in test_fin_free_finalize() [all …]
|
H A D | regress.c | 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() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/lockstat/ |
H A D | lockstat.c | 1251 int ev1, ev2; in main() local 1257 ev2 = evp2 ? atoi(evp2) : ev1; in main() 1259 (uint_t)ev2 >= LS_MAX_EVENTS || ev1 > ev2) in main() 1261 for (i = ev1; i <= ev2; i++) in main()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_stats.cpp | 369 const kmp_stats_event *ev2 = RCAST(const kmp_stats_event *, event2); in compare_two_events() local 371 if (ev1->getStart() < ev2->getStart()) in compare_two_events() 373 else if (ev1->getStart() > ev2->getStart()) in compare_two_events()
|