Home
last modified time | relevance | path

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

12

/third_party/libuv/test/
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()
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()
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()
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()
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()
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()
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()
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()
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()
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 …]
Dtest-timer.c280 uv_timer_t timer_handle; in TEST_IMPL() local
282 ASSERT(0 == uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
283 ASSERT(0 == uv_timer_start(&timer_handle, timer_run_once_timer_cb, 0, 0)); in TEST_IMPL()
287 ASSERT(0 == uv_timer_start(&timer_handle, timer_run_once_timer_cb, 1, 0)); in TEST_IMPL()
291 uv_close((uv_handle_t*) &timer_handle, NULL); in TEST_IMPL()
333 uv_timer_t timer_handle; in TEST_IMPL() local
338 ASSERT(0 == uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
339 ASSERT(0 == uv_timer_start(&timer_handle, timer_early_check_cb, timeout_ms, 0)); in TEST_IMPL()
342 uv_close((uv_handle_t*) &timer_handle, NULL); in TEST_IMPL()
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()
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()
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()
Dtest-callback-order.c29 static uv_timer_t timer_handle; variable
54 uv_timer_init(loop, &timer_handle); in next_tick()
55 uv_timer_start(&timer_handle, timer_cb, 0, 0); in next_tick()
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()
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()
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()
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);
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()
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()
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()
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()
/third_party/libuv/src/
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()
/third_party/boost/libs/thread/src/win32/
Dthread.cpp633 detail::win32::handle_manager timer_handle; in interruptible_wait() local
641 timer_handle=CreateWaitableTimer(NULL,false,NULL); in interruptible_wait()
642 if(timer_handle!=0) in interruptible_wait()
652 …bool const set_time_succeeded=detail_::SetWaitableTimerEx()(timer_handle,&due_time,0,0,0,NULL,tole… in interruptible_wait()
656 handles[handle_count++]=timer_handle; in interruptible_wait()
725 detail::win32::handle_manager timer_handle; in non_interruptible_wait() local
733 timer_handle=CreateWaitableTimer(NULL,false,NULL); in non_interruptible_wait()
734 if(timer_handle!=0) in non_interruptible_wait()
744 …bool const set_time_succeeded=detail_::SetWaitableTimerEx()(timer_handle,&due_time,0,0,0,NULL,tole… in non_interruptible_wait()
748 handles[handle_count++]=timer_handle; in non_interruptible_wait()

12