Home
last modified time | relevance | path

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

12345678

/libuv/test/
H A Dtest-ref.c111 uv_idle_init(uv_default_loop(), &h); in TEST_IMPL()
146 uv_check_init(uv_default_loop(), &h); in TEST_IMPL()
175 uv_timer_init(uv_default_loop(), &h); in TEST_IMPL()
225 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
236 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
248 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
263 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
282 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
300 uv_udp_init(uv_default_loop(), &h); in TEST_IMPL()
313 uv_udp_init(uv_default_loop(), &h); in TEST_IMPL()
[all …]
H A Dtest-timer.c62 uv_update_time(uv_default_loop()); in once_cb()
122 start_time = uv_now(uv_default_loop()); in TEST_IMPL()
159 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
179 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
192 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
241 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
257 loop = uv_default_loop(); in TEST_IMPL()
293 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
319 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
347 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
[all …]
H A Dtest-metrics.c75 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
151 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
179 ASSERT_OK(uv_fs_close(uv_default_loop(), in write_cb()
198 ASSERT_OK(uv_fs_write(uv_default_loop(), in create_cb()
217 ASSERT_OK(uv_fs_open(uv_default_loop(), in prepare_cb()
240 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
339 ASSERT_OK(uv_fs_write(uv_default_loop(), in TEST_IMPL()
346 ASSERT_OK(uv_fs_stat(uv_default_loop(), in TEST_IMPL()
350 ASSERT_OK(uv_fs_stat(uv_default_loop(), in TEST_IMPL()
354 ASSERT_OK(uv_random(uv_default_loop(), in TEST_IMPL()
[all …]
H A Dtest-tcp-bind-error.c75 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
108 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
133 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
156 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
181 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
209 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
226 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
243 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
257 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
297 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
[all …]
H A Dtest-pipe-bind-error.c67 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
71 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
80 r = uv_pipe_init(uv_default_loop(), &server, 0); in TEST_IMPL()
88 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
92 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
110 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
114 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
134 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
138 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
154 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
[all …]
H A 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()
70 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
76 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
78 uv_stop(uv_default_loop()); in TEST_IMPL()
79 ASSERT_NE(0, uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
[all …]
H A 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()
66 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
H A Dtest-fs-readdir.c67 r = uv_fs_closedir(uv_default_loop(), in empty_readdir_cb()
85 r = uv_fs_readdir(uv_default_loop(), in empty_opendir_cb()
115 r = uv_fs_opendir(uv_default_loop(), in TEST_IMPL()
202 r = uv_fs_opendir(uv_default_loop(), in TEST_IMPL()
293 uv_fs_closedir(uv_default_loop(), in non_empty_readdir_cb()
316 uv_fs_readdir(uv_default_loop(), in non_empty_readdir_cb()
360 r = uv_fs_open(uv_default_loop(), in TEST_IMPL()
367 r = uv_fs_close(uv_default_loop(), in TEST_IMPL()
374 r = uv_fs_open(uv_default_loop(), in TEST_IMPL()
381 r = uv_fs_close(uv_default_loop(), in TEST_IMPL()
[all …]
H A Dtest-spawn.c199 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
229 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
259 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
278 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
311 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
365 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
421 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
483 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
575 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
621 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
[all …]
H A Dtest-getaddrinfo.c100 ASSERT_OK(uv_getaddrinfo(uv_default_loop(), in TEST_IMPL()
109 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
130 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
144 r = uv_getaddrinfo(uv_default_loop(), in TEST_IMPL()
152 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
156 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
168 ASSERT_OK(uv_getaddrinfo(uv_default_loop(), in TEST_IMPL()
176 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
198 r = uv_getaddrinfo(uv_default_loop(), in TEST_IMPL()
207 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
[all …]
H A Dtest-tcp-bind6-error.c47 r = uv_tcp_init(uv_default_loop(), &server1); in TEST_IMPL()
65 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
69 MAKE_VALGRIND_HAPPY(uv_default_loop()); 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()
95 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
119 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
123 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
150 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
154 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
[all …]
H A Dtest-fork.c123 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
164 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
232 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
295 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
374 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
565 uv_update_time(uv_default_loop()); in _do_fork_fs_events_child()
577 MAKE_VALGRIND_HAPPY(uv_default_loop()); in _do_fork_fs_events_child()
628 loop = uv_default_loop(); in TEST_IMPL()
732 assert_run_work(uv_default_loop()); in TEST_IMPL()
743 assert_run_work(uv_default_loop()); in TEST_IMPL()
[all …]
H A Dtest-idle.c75 r = uv_idle_init(uv_default_loop(), &idle_handle); in TEST_IMPL()
80 r = uv_check_init(uv_default_loop(), &check_handle); in TEST_IMPL()
85 r = uv_timer_init(uv_default_loop(), &timer_handle); in TEST_IMPL()
90 r = uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
97 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
108 ASSERT_OK(uv_idle_init(uv_default_loop(), &idle_handle)); in TEST_IMPL()
111 ASSERT_OK(uv_check_init(uv_default_loop(), &check_handle)); in TEST_IMPL()
114 ASSERT_EQ(1, uv_run(uv_default_loop(), UV_RUN_ONCE)); in TEST_IMPL()
120 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_ONCE)); in TEST_IMPL()
123 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
H A Dtest-getnameinfo.c59 r = uv_getnameinfo(uv_default_loop(), in TEST_IMPL()
66 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
68 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
81 ASSERT_OK(uv_getnameinfo(uv_default_loop(), in TEST_IMPL()
89 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
105 r = uv_getnameinfo(uv_default_loop(), in TEST_IMPL()
112 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
114 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
H A 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()
89 MAKE_VALGRIND_HAPPY(uv_default_loop()); 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()
156 MAKE_VALGRIND_HAPPY(uv_default_loop()); 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()
[all …]
H A Dtest-tcp-create-socket-early.c131 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
133 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
178 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
180 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
189 r = uv_tcp_init_ex(uv_default_loop(), &client, 47); in TEST_IMPL()
192 r = uv_tcp_init_ex(uv_default_loop(), &client, 1024); in TEST_IMPL()
195 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
197 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
206 tcp_listener(uv_default_loop(), &server); in TEST_IMPL()
209 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
[all …]
H A Dtest-udp-create-socket-early.c43 r = uv_udp_init_ex(uv_default_loop(), &client, AF_INET); in TEST_IMPL()
71 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
73 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
89 r = uv_udp_init_ex(uv_default_loop(), &client, AF_INET6); in TEST_IMPL()
118 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
120 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
129 r = uv_udp_init_ex(uv_default_loop(), &client, 47); in TEST_IMPL()
132 r = uv_udp_init_ex(uv_default_loop(), &client, 1024); in TEST_IMPL()
135 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
137 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
H A 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()
139 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
H A Dtest-pipe-getsockname.c133 loop = uv_default_loop(); in TEST_IMPL()
248 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
251 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
266 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
268 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
293 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
296 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
303 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
305 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
361 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
[all …]
H A 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()
57 MAKE_VALGRIND_HAPPY(uv_default_loop()); 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()
74 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
H A Dtest-udp-open.c150 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
184 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
191 MAKE_VALGRIND_HAPPY(uv_default_loop()); 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()
218 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
246 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
248 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
291 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
298 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
[all …]
H A 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()
273 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
280 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
305 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
307 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
330 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
364 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
370 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
397 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
[all …]
H A Dtest-pipe-connect-error.c66 r = uv_pipe_init(uv_default_loop(), &client, 0); in TEST_IMPL()
70 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
75 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
86 r = uv_pipe_init(uv_default_loop(), &client, 0); in TEST_IMPL()
90 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in TEST_IMPL()
95 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
H A Dtest-timer-from-check.c65 ASSERT_OK(uv_prepare_init(uv_default_loop(), &prepare_handle)); in TEST_IMPL()
66 ASSERT_OK(uv_check_init(uv_default_loop(), &check_handle)); in TEST_IMPL()
68 ASSERT_OK(uv_timer_init(uv_default_loop(), &timer_handle)); in TEST_IMPL()
70 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
77 ASSERT_OK(uv_run(uv_default_loop(), UV_RUN_ONCE)); in TEST_IMPL()
78 MAKE_VALGRIND_HAPPY(uv_default_loop()); in TEST_IMPL()
/libuv/docs/code/uvcat/
H A Dmain.c21 uv_fs_read(uv_default_loop(), &read_req, open_req.result, &iov, 1, -1, on_read); in on_write()
32 uv_fs_close(uv_default_loop(), &close_req, open_req.result, NULL); in on_read()
36 uv_fs_write(uv_default_loop(), &write_req, 1, &iov, 1, -1, on_write); in on_read()
46 uv_fs_read(uv_default_loop(), &read_req, req->result, in on_open()
55 uv_fs_open(uv_default_loop(), &open_req, argv[1], O_RDONLY, 0, on_open); in main()
56 uv_run(uv_default_loop(), UV_RUN_DEFAULT); in main()

Completed in 68 milliseconds

12345678