/third_party/libuv/test/ |
D | test-delayed-accept.c | 48 static void do_accept(uv_timer_t* timer_handle) { in do_accept() argument 53 ASSERT_NOT_NULL(timer_handle); in do_accept() 59 server = (uv_tcp_t*)timer_handle->data; in do_accept() 74 uv_close((uv_handle_t*)timer_handle, close_cb); in do_accept() 80 uv_timer_t* timer_handle; in connection_cb() local 84 timer_handle = (uv_timer_t*)malloc(sizeof *timer_handle); in connection_cb() 85 ASSERT_NOT_NULL(timer_handle); in connection_cb() 88 r = uv_timer_init(uv_default_loop(), timer_handle); in connection_cb() 91 timer_handle->data = tcp; in connection_cb() 93 r = uv_timer_start(timer_handle, do_accept, 1000, 0); in connection_cb()
|
D | test-timer-from-check.c | 27 static uv_timer_t timer_handle; variable 44 ASSERT(0 == uv_timer_stop(&timer_handle)); in timer_cb() 54 ASSERT(0 == uv_timer_stop(&timer_handle)); /* Runs before timer_cb. */ in check_cb() 55 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 50, 0)); in check_cb() 68 ASSERT(0 == uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL() 69 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 50, 0)); in TEST_IMPL() 76 uv_close((uv_handle_t*) &timer_handle, NULL); in TEST_IMPL()
|
D | test-default-loop-close.c | 37 uv_timer_t timer_handle; in TEST_IMPL() local 42 ASSERT(0 == uv_timer_init(loop, &timer_handle)); in TEST_IMPL() 43 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 1, 0)); in TEST_IMPL() 51 ASSERT(0 == uv_timer_init(loop, &timer_handle)); in TEST_IMPL() 52 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 1, 0)); in TEST_IMPL()
|
D | test-run-nowait.c | 25 static uv_timer_t timer_handle; variable 30 ASSERT(handle == &timer_handle); in timer_cb() 37 uv_timer_init(uv_default_loop(), &timer_handle); in TEST_IMPL() 38 uv_timer_start(&timer_handle, timer_cb, 100, 100); in TEST_IMPL()
|
D | test-threadpool-cancel.c | 37 uv_timer_t timer_handle; member 132 ci = container_of(handle, struct cancel_info, timer_handle); in timer_cb() 139 uv_close((uv_handle_t*) &ci->timer_handle, NULL); in timer_cb() 187 ASSERT(0 == uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL() 188 ASSERT(0 == uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL() 223 ASSERT(0 == uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL() 224 ASSERT(0 == uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL() 269 ASSERT(0 == uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL() 270 ASSERT(0 == uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL() 322 ASSERT(0 == uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL() [all …]
|
D | test-idle.c | 28 static uv_timer_t timer_handle; variable 42 ASSERT(handle == &timer_handle); in timer_cb() 46 uv_close((uv_handle_t*) &timer_handle, close_cb); in timer_cb() 85 r = uv_timer_init(uv_default_loop(), &timer_handle); in TEST_IMPL() 87 r = uv_timer_start(&timer_handle, timer_cb, 50, 0); in TEST_IMPL()
|
D | test-timer.c | 303 uv_timer_t timer_handle; in TEST_IMPL() local 305 ASSERT(0 == uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL() 306 ASSERT(0 == uv_timer_start(&timer_handle, timer_run_once_timer_cb, 0, 0)); in TEST_IMPL() 310 ASSERT(0 == uv_timer_start(&timer_handle, timer_run_once_timer_cb, 1, 0)); in TEST_IMPL() 314 uv_close((uv_handle_t*) &timer_handle, NULL); in TEST_IMPL() 356 uv_timer_t timer_handle; in TEST_IMPL() local 361 ASSERT(0 == uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL() 362 ASSERT(0 == uv_timer_start(&timer_handle, timer_early_check_cb, timeout_ms, 0)); in TEST_IMPL() 365 uv_close((uv_handle_t*) &timer_handle, NULL); in TEST_IMPL()
|
D | test-loop-stop.c | 26 static uv_timer_t timer_handle; variable 41 ASSERT(handle == &timer_handle); in timer_cb() 54 uv_timer_init(uv_default_loop(), &timer_handle); in TEST_IMPL() 55 uv_timer_start(&timer_handle, timer_cb, 100, 100); in TEST_IMPL()
|
D | test-loop-close.c | 25 static uv_timer_t timer_handle; variable 41 uv_timer_init(&loop, &timer_handle); in TEST_IMPL() 42 uv_timer_start(&timer_handle, timer_cb, 100, 100); in TEST_IMPL() 48 uv_close((uv_handle_t*) &timer_handle, NULL); in TEST_IMPL()
|
D | benchmark-loop-count.c | 32 static uv_timer_t timer_handle; variable 48 uv_timer_stop(&timer_handle); in timer_cb() 82 uv_timer_init(loop, &timer_handle); in BENCHMARK_IMPL() 83 uv_timer_start(&timer_handle, timer_cb, 5000, 0); in BENCHMARK_IMPL()
|
D | test-tcp-read-stop.c | 25 static uv_timer_t timer_handle; variable 36 uv_close((uv_handle_t*) &timer_handle, NULL); in write_cb() 54 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 50, 0)); in connect_cb() 66 ASSERT(0 == uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
|
D | test-loop-configure.c | 25 uv_timer_t timer_handle; in TEST_IMPL() local 33 ASSERT(0 == uv_timer_init(&loop, &timer_handle)); in TEST_IMPL() 34 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 10, 0)); in TEST_IMPL()
|
D | test-tcp-unexpected-read.c | 26 static uv_timer_t timer_handle; variable 43 uv_close((uv_handle_t*) &timer_handle, NULL); in timer_cb() 94 ASSERT(0 == uv_timer_init(loop, &timer_handle)); in TEST_IMPL() 95 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 1000, 0)); in TEST_IMPL()
|
D | test-loop-alive.c | 25 static uv_timer_t timer_handle; variable 49 uv_timer_init(uv_default_loop(), &timer_handle); in TEST_IMPL() 50 uv_timer_start(&timer_handle, timer_cb, 100, 0); in TEST_IMPL()
|
D | benchmark-queue-work.c | 49 uv_timer_t timer_handle; in BENCHMARK_IMPL() local 57 ASSERT_EQ(0, uv_timer_init(loop, &timer_handle)); in BENCHMARK_IMPL() 58 ASSERT_EQ(0, uv_timer_start(&timer_handle, timer_cb, timeout, 0)); in BENCHMARK_IMPL()
|
D | test-loop-handles.c | 86 static uv_timer_t timer_handle; variable 111 ASSERT(handle == &timer_handle); in timer_cb() 309 r = uv_timer_init(uv_default_loop(), &timer_handle); in TEST_IMPL() 311 r = uv_timer_start(&timer_handle, timer_cb, TIMEOUT, TIMEOUT); in TEST_IMPL() 313 uv_unref((uv_handle_t*)&timer_handle); in TEST_IMPL()
|
D | benchmark-million-async.c | 79 uv_timer_t timer_handle; in BENCHMARK_IMPL() local 99 ASSERT(0 == uv_timer_init(loop, &timer_handle)); in BENCHMARK_IMPL() 100 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, timeout, 0)); in BENCHMARK_IMPL()
|
D | test-poll.c | 59 uv_timer_t timer_handle; member 168 r = uv_timer_init(uv_default_loop(), &context->timer_handle); in create_connection_context() 170 context->timer_handle.data = context; in create_connection_context() 202 uv_close((uv_handle_t*) &context->timer_handle, connection_close_cb); in destroy_connection_context() 276 if (!uv_is_active((uv_handle_t*) &context->timer_handle)) { 278 uv_timer_start(&context->timer_handle, delay_timer_cb, 10, 0); 375 if (!uv_is_active((uv_handle_t*) &context->timer_handle)) { 377 uv_timer_start(&context->timer_handle, delay_timer_cb, 100, 0);
|
D | benchmark-udp-pummel.c | 151 uv_timer_t timer_handle; in pummel() local 165 ASSERT(0 == uv_timer_init(loop, &timer_handle)); in pummel() 166 ASSERT(0 == uv_timer_start(&timer_handle, timeout_cb, timeout, 0)); in pummel() 168 uv_unref((uv_handle_t*)&timer_handle); in pummel()
|
D | test-fs-poll.c | 46 static uv_timer_t timer_handle; variable 123 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 20, 0)); in poll_cb() 130 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 200, 0)); in poll_cb() 158 ASSERT(0 == uv_timer_init(loop, &timer_handle)); in TEST_IMPL()
|
D | benchmark-pump.c | 79 static uv_timer_t timer_handle; variable 161 r = uv_timer_init(loop, &timer_handle); in start_stats_collection() 163 r = uv_timer_start(&timer_handle, show_stats, STATS_INTERVAL, STATS_INTERVAL); in start_stats_collection()
|
D | test-fork.c | 63 uv_timer_t timer_handle; in run_timer_loop_once() local 69 ASSERT(0 == uv_timer_init(loop, &timer_handle)); in run_timer_loop_once() 70 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 1, 0)); in run_timer_loop_once()
|
/third_party/node/deps/uv/src/ |
D | fs-poll.c | 44 uv_timer_t timer_handle; member 92 err = uv_timer_init(loop, &ctx->timer_handle); in uv_fs_poll_start() 96 ctx->timer_handle.flags |= UV_HANDLE_INTERNAL; in uv_fs_poll_start() 97 uv__handle_unref(&ctx->timer_handle); in uv_fs_poll_start() 129 if (uv_is_active((uv_handle_t*)&ctx->timer_handle)) in uv_fs_poll_stop() 130 uv_close((uv_handle_t*)&ctx->timer_handle, timer_close_cb); in uv_fs_poll_stop() 175 ctx = container_of(timer, struct poll_ctx, timer_handle); in timer_cb() 221 uv_close((uv_handle_t*)&ctx->timer_handle, timer_close_cb); in poll_cb() 229 if (uv_timer_start(&ctx->timer_handle, timer_cb, interval, 0)) in poll_cb() 240 ctx = container_of(timer, struct poll_ctx, timer_handle); in timer_close_cb()
|
/third_party/libuv/src/ |
D | fs-poll.c | 44 uv_timer_t timer_handle; member 92 err = uv_timer_init(loop, &ctx->timer_handle); in uv_fs_poll_start() 96 ctx->timer_handle.flags |= UV_HANDLE_INTERNAL; in uv_fs_poll_start() 97 uv__handle_unref(&ctx->timer_handle); in uv_fs_poll_start() 129 if (uv_is_active((uv_handle_t*)&ctx->timer_handle)) in uv_fs_poll_stop() 130 uv_close((uv_handle_t*)&ctx->timer_handle, timer_close_cb); in uv_fs_poll_stop() 175 ctx = container_of(timer, struct poll_ctx, timer_handle); in timer_cb() 221 uv_close((uv_handle_t*)&ctx->timer_handle, timer_close_cb); in poll_cb() 229 if (uv_timer_start(&ctx->timer_handle, timer_cb, interval, 0)) in poll_cb() 240 ctx = container_of(timer, struct poll_ctx, timer_handle); in timer_close_cb()
|
/third_party/node/src/ |
D | env.cc | 855 CHECK_EQ(0, uv_timer_init(event_loop(), timer_handle())); in InitializeLibuv() 856 uv_unref(reinterpret_cast<uv_handle_t*>(timer_handle())); in InitializeLibuv() 930 register_handle(reinterpret_cast<uv_handle_t*>(timer_handle())); in RegisterHandleCleanups() 1156 uv_timer_start(timer_handle(), RunTimers, duration_ms, 0); in ScheduleTimer() 1163 uv_ref(reinterpret_cast<uv_handle_t*>(timer_handle())); in ToggleTimerRef() 1165 uv_unref(reinterpret_cast<uv_handle_t*>(timer_handle())); in ToggleTimerRef()
|