Lines Matching refs:uv_default_loop
62 uv_update_time(uv_default_loop()); in once_cb()
122 start_time = uv_now(uv_default_loop()); in TEST_IMPL()
128 r = uv_timer_init(uv_default_loop(), once); in TEST_IMPL()
135 r = uv_timer_init(uv_default_loop(), &repeat); in TEST_IMPL()
141 r = uv_timer_init(uv_default_loop(), &never); in TEST_IMPL()
149 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
157 ASSERT_LE(500, uv_now(uv_default_loop()) - start_time); in TEST_IMPL()
159 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
168 r = uv_timer_init(uv_default_loop(), &once); in TEST_IMPL()
174 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
179 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
187 ASSERT_OK(uv_timer_init(uv_default_loop(), &handle)); in TEST_IMPL()
192 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
215 ASSERT_OK(uv_timer_init(uv_default_loop(), &handle_a)); in TEST_IMPL()
216 ASSERT_OK(uv_timer_init(uv_default_loop(), &handle_b)); in TEST_IMPL()
223 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
237 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
241 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
257 loop = uv_default_loop(); in TEST_IMPL()
280 ASSERT_OK(uv_timer_init(uv_default_loop(), &tiny_timer)); in TEST_IMPL()
281 ASSERT_OK(uv_timer_init(uv_default_loop(), &huge_timer1)); in TEST_IMPL()
282 ASSERT_OK(uv_timer_init(uv_default_loop(), &huge_timer2)); in TEST_IMPL()
292 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
293 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
314 ASSERT_OK(uv_timer_init(uv_default_loop(), &tiny_timer)); in TEST_IMPL()
315 ASSERT_OK(uv_timer_init(uv_default_loop(), &huge_timer1)); in TEST_IMPL()
318 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
319 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
335 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
337 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_ONCE)); in TEST_IMPL()
341 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_ONCE)); in TEST_IMPL()
345 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_ONCE)); in TEST_IMPL()
347 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
355 ASSERT_OK(uv_timer_init(uv_default_loop(), &handle)); in TEST_IMPL()
360 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
368 ASSERT_OK(uv_timer_init(uv_default_loop(), &handle)); in TEST_IMPL()
371 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
389 timer_early_check_expected_time = uv_now(uv_default_loop()) + timeout_ms; in TEST_IMPL()
391 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
396 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
399 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
401 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
413 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
419 ASSERT_EQ(1, uv_run(uv_default_loop(), UV_RUN_ONCE)); in TEST_IMPL()
422 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
430 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
436 ASSERT_EQ(1, uv_run(uv_default_loop(), UV_RUN_NOWAIT)); in TEST_IMPL()
439 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
446 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
449 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
451 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()