• Home
  • Raw
  • Download

Lines Matching refs:loop

52 	struct wl_event_loop *loop = wl_event_loop_create();  in TEST()  local
57 assert(loop); in TEST()
60 source = wl_event_loop_add_fd(loop, p[0], WL_EVENT_READABLE, in TEST()
65 wl_event_loop_dispatch(loop, 0); in TEST()
71 wl_event_loop_destroy(loop); in TEST()
103 struct wl_event_loop *loop = wl_event_loop_create(); in TEST() local
116 assert(loop); in TEST()
122 wl_event_loop_add_fd(loop, context.p1[0], WL_EVENT_READABLE, in TEST()
126 wl_event_loop_add_fd(loop, context.p2[0], WL_EVENT_READABLE, in TEST()
134 wl_event_loop_dispatch(loop, 0); in TEST()
142 wl_event_loop_destroy(loop); in TEST()
163 struct wl_event_loop *loop = wl_event_loop_create(); in TEST() local
167 source = wl_event_loop_add_signal(loop, SIGUSR1, in TEST()
171 wl_event_loop_dispatch(loop, 0); in TEST()
174 wl_event_loop_dispatch(loop, 0); in TEST()
178 wl_event_loop_destroy(loop); in TEST()
183 struct wl_event_loop *loop = wl_event_loop_create(); in TEST() local
188 s1 = wl_event_loop_add_signal(loop, SIGUSR1, in TEST()
192 s2 = wl_event_loop_add_signal(loop, SIGUSR1, in TEST()
196 assert(wl_event_loop_dispatch(loop, 0) == 0); in TEST()
203 assert(wl_event_loop_dispatch(loop, 0) == 0); in TEST()
212 assert(wl_event_loop_dispatch(loop, 0) == 0); in TEST()
217 wl_event_loop_destroy(loop); in TEST()
232 struct wl_event_loop *loop = wl_event_loop_create(); in TEST() local
236 source1 = wl_event_loop_add_timer(loop, timer_callback, &got_it); in TEST()
240 source2 = wl_event_loop_add_timer(loop, timer_callback, &got_it); in TEST()
249 wl_event_loop_dispatch(loop, 0); in TEST()
251 wl_event_loop_dispatch(loop, 30); in TEST()
253 wl_event_loop_dispatch(loop, 0); in TEST()
255 wl_event_loop_dispatch(loop, 90); in TEST()
260 wl_event_loop_destroy(loop); in TEST()
292 struct wl_event_loop *loop = wl_event_loop_create(); in TEST() local
304 context.source1 = wl_event_loop_add_timer(loop, timer_update_callback_1, in TEST()
309 context.source2 = wl_event_loop_add_timer(loop, timer_update_callback_2, in TEST()
329 wl_event_loop_dispatch(loop, 20); in TEST()
346 wl_event_loop_destroy(loop); in TEST()
368 struct wl_event_loop *loop = wl_event_loop_create(); in TEST() local
380 wl_event_loop_add_timer(loop, timer_order_callback, in TEST()
398 wl_event_loop_dispatch(loop, 0); in TEST()
404 wl_event_loop_destroy(loop); in TEST()
442 struct wl_event_loop *loop = wl_event_loop_create(); in TEST() local
457 wl_event_loop_add_timer(loop, timer_cancel_callback, in TEST()
465 assert(wl_event_loop_dispatch(loop, 0) == 0); in TEST()
478 wl_event_loop_destroy(loop); in TEST()
497 struct wl_event_loop *loop; in TEST() local
501 loop = wl_event_loop_create(); in TEST()
502 assert(loop); in TEST()
506 wl_event_loop_add_destroy_listener(loop, &a.listener); in TEST()
508 assert(wl_event_loop_get_destroy_listener(loop, in TEST()
513 wl_event_loop_add_destroy_listener(loop, &b.listener); in TEST()
516 wl_event_loop_destroy(loop); in TEST()
524 loop = wl_display_get_event_loop(display); in TEST()
525 assert(loop); in TEST()
528 wl_event_loop_add_destroy_listener(loop, &a.listener); in TEST()