Home
last modified time | relevance | path

Searched refs:uv_default_loop (Results 1 – 25 of 188) sorted by relevance

12345678

/third_party/libuv/test/
Dtest-ref.c51 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in do_close()
103 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
111 uv_idle_init(uv_default_loop(), &h); in TEST_IMPL()
114 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
123 uv_async_init(uv_default_loop(), &h, NULL); in TEST_IMPL()
125 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
134 uv_prepare_init(uv_default_loop(), &h); in TEST_IMPL()
137 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
146 uv_check_init(uv_default_loop(), &h); in TEST_IMPL()
149 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
[all …]
Dtest-timer.c58 uv_update_time(uv_default_loop()); in once_cb()
97 start_time = uv_now(uv_default_loop()); in TEST_IMPL()
103 r = uv_timer_init(uv_default_loop(), once); in TEST_IMPL()
110 r = uv_timer_init(uv_default_loop(), &repeat); in TEST_IMPL()
116 r = uv_timer_init(uv_default_loop(), &never); in TEST_IMPL()
124 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
132 ASSERT(500 <= uv_now(uv_default_loop()) - start_time); in TEST_IMPL()
143 r = uv_timer_init(uv_default_loop(), &once); in TEST_IMPL()
149 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
162 ASSERT(0 == uv_timer_init(uv_default_loop(), &handle)); in TEST_IMPL()
[all …]
Dtest-fs-readdir.c66 r = uv_fs_closedir(uv_default_loop(), in empty_readdir_cb()
84 r = uv_fs_readdir(uv_default_loop(), in empty_opendir_cb()
107 uv_fs_mkdir(uv_default_loop(), &mkdir_req, path, 0777, NULL); in TEST_IMPL()
114 r = uv_fs_opendir(uv_default_loop(), in TEST_IMPL()
129 nb_entries_read = uv_fs_readdir(uv_default_loop(), in TEST_IMPL()
138 uv_fs_closedir(uv_default_loop(), &closedir_req, dir, NULL); in TEST_IMPL()
149 r = uv_fs_opendir(uv_default_loop(), &opendir_req, path, empty_opendir_cb); in TEST_IMPL()
153 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
157 uv_fs_rmdir(uv_default_loop(), &rmdir_req, path, NULL); in TEST_IMPL()
190 r = uv_fs_opendir(uv_default_loop(), &opendir_req, path, NULL); in TEST_IMPL()
[all …]
Dtest-fork.c65 loop = uv_default_loop(); in run_timer_loop_once()
110 ASSERT(0 == uv_loop_fork(uv_default_loop())); in TEST_IMPL()
132 ASSERT(0 == uv_poll_init(uv_default_loop(), &poll_handle, socket_fds[0])); in TEST_IMPL()
143 ASSERT(0 == uv_loop_fork(uv_default_loop())); in TEST_IMPL()
147 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
174 ASSERT(0 == uv_poll_init(uv_default_loop(), &poll_handle, socket_fds[0])); in TEST_IMPL()
181 ASSERT(1 == uv_run(uv_default_loop(), UV_RUN_NOWAIT)); in TEST_IMPL()
190 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
195 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
203 ASSERT(0 == uv_loop_fork(uv_default_loop())); in TEST_IMPL()
[all …]
Dtest-loop-alive.c46 ASSERT(!uv_loop_alive(uv_default_loop())); in TEST_IMPL()
49 uv_timer_init(uv_default_loop(), &timer_handle); in TEST_IMPL()
51 ASSERT(uv_loop_alive(uv_default_loop())); in TEST_IMPL()
53 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
55 ASSERT(!uv_loop_alive(uv_default_loop())); in TEST_IMPL()
58 r = uv_queue_work(uv_default_loop(), &work_req, work_cb, after_work_cb); in TEST_IMPL()
60 ASSERT(uv_loop_alive(uv_default_loop())); in TEST_IMPL()
62 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
64 ASSERT(!uv_loop_alive(uv_default_loop())); in TEST_IMPL()
Dtest-spawn.c190 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
194 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
210 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
213 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
224 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
250 ASSERT(0 == uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
251 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
266 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
269 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
287 uv_pipe_init(uv_default_loop(), &out, 0); in TEST_IMPL()
[all …]
Dtest-tcp-bind-error.c56 ASSERT(0 == uv_tcp_init(uv_default_loop(), &conn)); in TEST_IMPL()
71 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
86 r = uv_tcp_init(uv_default_loop(), &server1); in TEST_IMPL()
91 r = uv_tcp_init(uv_default_loop(), &server2); in TEST_IMPL()
104 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
120 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
129 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
145 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
152 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
170 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
[all …]
Dtest-pipe-bind-error.c48 r = uv_pipe_init(uv_default_loop(), &server1, 0); in TEST_IMPL()
53 r = uv_pipe_init(uv_default_loop(), &server2, 0); in TEST_IMPL()
66 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
79 r = uv_pipe_init(uv_default_loop(), &server, 0); in TEST_IMPL()
87 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
100 r = uv_pipe_init(uv_default_loop(), &server, 0); in TEST_IMPL()
109 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
125 r = uv_pipe_init(uv_default_loop(), &server, 0); in TEST_IMPL()
133 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
Dtest-tcp-bind6-error.c47 r = uv_tcp_init(uv_default_loop(), &server1); in TEST_IMPL()
52 r = uv_tcp_init(uv_default_loop(), &server2); in TEST_IMPL()
65 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
84 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
91 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
112 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
119 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
141 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
150 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
169 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
Dtest-metrics.c48 ASSERT_EQ(0, uv_loop_configure(uv_default_loop(), UV_METRICS_IDLE_TIME)); in TEST_IMPL()
49 ASSERT_EQ(0, uv_timer_init(uv_default_loop(), &timer)); in TEST_IMPL()
52 ASSERT_EQ(0, uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
55 idle_time = uv_metrics_idle_time(uv_default_loop()); in TEST_IMPL()
124 ASSERT_EQ(0, uv_loop_configure(uv_default_loop(), UV_METRICS_IDLE_TIME)); in TEST_IMPL()
125 ASSERT_EQ(0, uv_timer_init(uv_default_loop(), &timer)); in TEST_IMPL()
128 ASSERT_EQ(0, uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
131 ASSERT_EQ(0, uv_metrics_idle_time(uv_default_loop())); in TEST_IMPL()
Dtest-timer-again.c51 (long int)(uv_now(uv_default_loop()) - start_time)); in repeat_1_cb()
74 (long int)(uv_now(uv_default_loop()) - start_time)); in repeat_2_cb()
98 start_time = uv_now(uv_default_loop()); in TEST_IMPL()
102 r = uv_timer_init(uv_default_loop(), &dummy); in TEST_IMPL()
109 r = uv_timer_init(uv_default_loop(), &repeat_1); in TEST_IMPL()
123 r = uv_timer_init(uv_default_loop(), &repeat_2); in TEST_IMPL()
129 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
136 (long int)(uv_now(uv_default_loop()) - start_time)); in TEST_IMPL()
Dtest-tcp-create-socket-early.c103 r = uv_tcp_init_ex(uv_default_loop(), &client, AF_INET); in TEST_IMPL()
129 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
147 r = uv_tcp_init_ex(uv_default_loop(), &client, AF_INET6); in TEST_IMPL()
174 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
185 r = uv_tcp_init_ex(uv_default_loop(), &client, 47); in TEST_IMPL()
188 r = uv_tcp_init_ex(uv_default_loop(), &client, 1024); in TEST_IMPL()
191 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
202 tcp_listener(uv_default_loop(), &server); in TEST_IMPL()
203 tcp_connector(uv_default_loop(), &client, &connect_req); in TEST_IMPL()
205 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
Dtest-loop-stop.c44 uv_stop(uv_default_loop()); in timer_cb()
52 uv_prepare_init(uv_default_loop(), &prepare_handle); in TEST_IMPL()
54 uv_timer_init(uv_default_loop(), &timer_handle); in TEST_IMPL()
57 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
61 r = uv_run(uv_default_loop(), UV_RUN_NOWAIT); in TEST_IMPL()
65 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
Dtest-tcp-connect-timeout.c69 r = uv_timer_init(uv_default_loop(), &timer); in TEST_IMPL()
75 r = uv_tcp_init(uv_default_loop(), &conn); in TEST_IMPL()
86 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
135 r = uv_timer_init(uv_default_loop(), &timer); in TEST_IMPL()
142 r = uv_tcp_init(uv_default_loop(), &conn); in TEST_IMPL()
153 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
173 r = uv_timer_init(uv_default_loop(), &timer); in TEST_IMPL()
180 r = uv_tcp_init(uv_default_loop(), &conn); in TEST_IMPL()
191 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
Dtest-udp-create-socket-early.c43 r = uv_udp_init_ex(uv_default_loop(), &client, AF_INET); in TEST_IMPL()
69 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
87 r = uv_udp_init_ex(uv_default_loop(), &client, AF_INET6); in TEST_IMPL()
114 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
125 r = uv_udp_init_ex(uv_default_loop(), &client, 47); in TEST_IMPL()
128 r = uv_udp_init_ex(uv_default_loop(), &client, 1024); in TEST_IMPL()
131 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
Dtest-udp-open.c150 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
172 r = uv_udp_init(uv_default_loop(), &client2); in TEST_IMPL()
184 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
205 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
216 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
236 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
246 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
265 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
274 r = uv_udp_init(uv_default_loop(), &server); in TEST_IMPL()
291 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
[all …]
Dtest-ipc.c128 r = uv_tcp_init(uv_default_loop(), &conn->conn); in make_many_connections()
181 r = uv_tcp_init(uv_default_loop(), &tcp_server); in on_read()
250 r = uv_tcp_init(uv_default_loop(), &tcp_server); in on_read_listen_after_bound_twice()
261 r = uv_tcp_init(uv_default_loop(), &tcp_server2); in on_read_listen_after_bound_twice()
290 r = uv_pipe_init(uv_default_loop(), channel, 1); in spawn_helper()
317 r = uv_spawn(uv_default_loop(), process, &options); in spawn_helper()
387 r = uv_tcp_init(uv_default_loop(), &tcp_connection); in on_read_connection()
424 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in run_ipc_test()
479 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
504 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
[all …]
Dtest-timer-from-check.c65 ASSERT(0 == uv_prepare_init(uv_default_loop(), &prepare_handle)); in TEST_IMPL()
66 ASSERT(0 == uv_check_init(uv_default_loop(), &check_handle)); in TEST_IMPL()
68 ASSERT(0 == uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
70 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
77 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_ONCE)); in TEST_IMPL()
Dtest-tcp-open.c220 r = uv_timer_init(uv_default_loop(), &tm); in connect1_cb()
247 r = uv_tcp_init(uv_default_loop(), &client); in TEST_IMPL()
261 r = uv_tcp_init(uv_default_loop(), &client2); in TEST_IMPL()
273 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
294 r = uv_tcp_init(uv_default_loop(), &client); in TEST_IMPL()
305 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
322 ASSERT(0 == uv_tcp_init(uv_default_loop(), &server)); in TEST_IMPL()
348 ASSERT(0 == uv_tcp_init(uv_default_loop(), &client)); in TEST_IMPL()
358 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
379 r = uv_tcp_init(uv_default_loop(), &client); in TEST_IMPL()
[all …]
Dtest-getaddrinfo.c51 ASSERT(UV_EINVAL == uv_getaddrinfo(uv_default_loop(), in TEST_IMPL()
59 ASSERT(0 == uv_getaddrinfo(uv_default_loop(), in TEST_IMPL()
65 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
81 ASSERT(0 > uv_getaddrinfo(uv_default_loop(), in TEST_IMPL()
Dtest-loop-time.c29 start = uv_now(uv_default_loop()); in TEST_IMPL()
30 while (uv_now(uv_default_loop()) - start < 1000) in TEST_IMPL()
31 ASSERT_EQ(0, uv_run(uv_default_loop(), UV_RUN_NOWAIT)); in TEST_IMPL()
42 uv_loop_t *loop = uv_default_loop(); in TEST_IMPL()
Dtest-threadpool.c50 r = uv_queue_work(uv_default_loop(), &work_req, work_cb, after_work_cb); in TEST_IMPL()
52 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
66 r = uv_queue_work(uv_default_loop(), &work_req, NULL, after_work_cb); in TEST_IMPL()
69 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
/third_party/libuv/docs/code/uvcat/
Dmain.c22 uv_fs_read(uv_default_loop(), &read_req, open_req.result, &iov, 1, -1, on_read); in on_write()
33 uv_fs_close(uv_default_loop(), &close_req, open_req.result, NULL); in on_read()
37 uv_fs_write(uv_default_loop(), &write_req, 1, &iov, 1, -1, on_write); in on_read()
47 uv_fs_read(uv_default_loop(), &read_req, req->result, in on_open()
56 uv_fs_open(uv_default_loop(), &open_req, argv[1], O_RDONLY, 0, on_open); in main()
57 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in main()
/third_party/grpc/src/core/lib/iomgr/
Dpollset_uv.cc49 uv_timer_init(uv_default_loop(), &g_handle->poll_timer); in init()
50 uv_timer_init(uv_default_loop(), &g_handle->kick_timer); in init()
60 uv_run(uv_default_loop(), UV_RUN_NOWAIT); in run_loop()
63 uv_run(uv_default_loop(), UV_RUN_ONCE); in run_loop()
87 GPR_ASSERT(uv_run(uv_default_loop(), UV_RUN_DEFAULT) == 0); in shutdown()
/third_party/libuv/docs/code/uvstop/
Dmain.c11 uv_stop(uv_default_loop()); in idle_cb()
24 uv_idle_init(uv_default_loop(), &idler); in main()
27 uv_prepare_init(uv_default_loop(), &prep); in main()
30 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in main()

12345678