Home
last modified time | relevance | path

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

/netbsd/external/mit/libuv/dist/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(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()
H A Dtest-default-loop-close.c37 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()
H A Dtest-run-nowait.c25 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()
H A Dtest-threadpool-cancel.c37 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 …]
H A Dtest-timer.c303 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()
H A Dtest-idle.c28 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()
H A Dtest-loop-stop.c26 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()
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 Dbenchmark-loop-count.c32 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()
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(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()
H A Dtest-loop-configure.c25 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()
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(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()
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-loop-handles.c86 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()
H A Dbenchmark-queue-work.c49 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()
H A Dtest-poll.c59 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);
H A Dbenchmark-million-async.c79 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()
H A Dbenchmark-udp-pummel.c151 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()
H A Dtest-fs-poll.c46 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()
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.c63 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()
/netbsd/external/mit/libuv/dist/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()