Home
last modified time | relevance | path

Searched refs:timer_handle (Results 1 – 23 of 23) sorted by relevance

/libuv/test/
H A Dtest-delayed-accept.c48 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()
H A Dtest-timer-from-check.c27 static uv_timer_t timer_handle; variable
44 ASSERT_OK(uv_timer_stop(&timer_handle)); in timer_cb()
54 ASSERT_OK(uv_timer_stop(&timer_handle)); /* Runs before timer_cb. */ in check_cb()
55 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 50, 0)); in check_cb()
68 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
69 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 50, 0)); in TEST_IMPL()
76 uv_close((uv_handle_t*) &timer_handle, NULL); in TEST_IMPL()
H A Dtest-loop-stop.c26 static uv_timer_t timer_handle; variable
41 ASSERT_PTR_EQ(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()
76 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
77 ASSERT_OK(uv_timer_start(&timer_handle, (uv_timer_cb) abort, 0, 0)); in TEST_IMPL()
H A Dtest-timer.c333 uv_timer_t timer_handle; in TEST_IMPL() local
344 uv_close((uv_handle_t*) &timer_handle, NULL); in TEST_IMPL()
386 uv_timer_t timer_handle; in TEST_IMPL() local
392 ASSERT_OK(uv_timer_start(&timer_handle, in TEST_IMPL()
398 uv_close((uv_handle_t*) &timer_handle, NULL); in TEST_IMPL()
410 uv_timer_t timer_handle; in TEST_IMPL() local
414 ASSERT_OK(uv_timer_start(&timer_handle, in TEST_IMPL()
427 uv_timer_t timer_handle; in TEST_IMPL() local
431 ASSERT_OK(uv_timer_start(&timer_handle, in TEST_IMPL()
444 uv_timer_t timer_handle; in TEST_IMPL() local
[all …]
H A Dtest-default-loop-close.c37 uv_timer_t timer_handle; in TEST_IMPL() local
42 ASSERT_OK(uv_timer_init(loop, &timer_handle)); in TEST_IMPL()
43 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 1, 0)); in TEST_IMPL()
51 ASSERT_OK(uv_timer_init(loop, &timer_handle)); in TEST_IMPL()
52 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 1, 0)); in TEST_IMPL()
H A Dtest-run-nowait.c25 static uv_timer_t timer_handle; variable
30 ASSERT_PTR_EQ(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()
H A Dtest-loop-close.c25 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()
H A Dtest-tcp-read-stop.c25 static uv_timer_t timer_handle; variable
36 uv_close((uv_handle_t*) &timer_handle, NULL); in write_cb()
54 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 50, 0)); in connect_cb()
66 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
H A Dtest-idle.c28 static uv_timer_t timer_handle; variable
42 ASSERT_PTR_EQ(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()
H A Dtest-loop-configure.c25 uv_timer_t timer_handle; in TEST_IMPL() local
33 ASSERT_OK(uv_timer_init(&loop, &timer_handle)); in TEST_IMPL()
34 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 10, 0)); in TEST_IMPL()
H A Dbenchmark-loop-count.c33 static uv_timer_t timer_handle; variable
62 uv_timer_stop(&timer_handle); in timer_cb()
96 uv_timer_init(loop, &timer_handle); in BENCHMARK_IMPL()
97 uv_timer_start(&timer_handle, timer_cb, 5000, 0); in BENCHMARK_IMPL()
H A Dtest-loop-alive.c25 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()
H A Dtest-threadpool-cancel.c41 uv_timer_t timer_handle; member
168 ci = container_of(handle, struct cancel_info, timer_handle); in timer_cb()
175 uv_close((uv_handle_t*) &ci->timer_handle, NULL); in timer_cb()
223 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
224 ASSERT_OK(uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL()
259 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
260 ASSERT_OK(uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL()
305 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
306 ASSERT_OK(uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL()
358 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
[all …]
H A Dbenchmark-queue-work.c50 uv_timer_t timer_handle; in BENCHMARK_IMPL() local
58 ASSERT_OK(uv_timer_init(loop, &timer_handle)); in BENCHMARK_IMPL()
59 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, timeout, 0)); in BENCHMARK_IMPL()
H A Dtest-tcp-unexpected-read.c26 static uv_timer_t timer_handle; variable
43 uv_close((uv_handle_t*) &timer_handle, NULL); in timer_cb()
94 ASSERT_OK(uv_timer_init(loop, &timer_handle)); in TEST_IMPL()
95 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 1000, 0)); in TEST_IMPL()
H A Dtest-loop-handles.c86 static uv_timer_t timer_handle; variable
111 ASSERT_PTR_EQ(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()
H A Dbenchmark-million-async.c80 uv_timer_t timer_handle; in BENCHMARK_IMPL() local
100 ASSERT_OK(uv_timer_init(loop, &timer_handle)); in BENCHMARK_IMPL()
101 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, timeout, 0)); in BENCHMARK_IMPL()
H A Dbenchmark-udp-pummel.c151 uv_timer_t timer_handle; in pummel() local
165 ASSERT_OK(uv_timer_init(loop, &timer_handle)); in pummel()
166 ASSERT_OK(uv_timer_start(&timer_handle, timeout_cb, timeout, 0)); in pummel()
168 uv_unref((uv_handle_t*)&timer_handle); in pummel()
H A Dtest-poll.c60 uv_timer_t timer_handle; member
169 r = uv_timer_init(uv_default_loop(), &context->timer_handle); in create_connection_context()
171 context->timer_handle.data = context; in create_connection_context()
203 uv_close((uv_handle_t*) &context->timer_handle, connection_close_cb); in destroy_connection_context()
277 if (!uv_is_active((uv_handle_t*) &context->timer_handle)) {
279 uv_timer_start(&context->timer_handle, delay_timer_cb, 10, 0);
376 if (!uv_is_active((uv_handle_t*) &context->timer_handle)) {
378 uv_timer_start(&context->timer_handle, delay_timer_cb, 100, 0);
H A Dtest-fs-poll.c46 static uv_timer_t timer_handle; variable
123 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 20, 0)); in poll_cb()
130 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 200, 0)); in poll_cb()
158 ASSERT_OK(uv_timer_init(loop, &timer_handle)); in TEST_IMPL()
H A Dbenchmark-pump.c79 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()
H A Dtest-fork.c67 uv_timer_t timer_handle; in run_timer_loop_once() local
73 ASSERT_OK(uv_timer_init(&loop, &timer_handle)); in run_timer_loop_once()
74 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, 1, 0)); in run_timer_loop_once()
/libuv/src/
H A Dfs-poll.c44 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()

Completed in 45 milliseconds