/third_party/libuv/test/ |
D | test-ref.c | 51 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 …]
|
D | test-timer.c | 58 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 …]
|
D | test-fs-readdir.c | 66 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 …]
|
D | test-fork.c | 65 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 …]
|
D | test-loop-alive.c | 46 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()
|
D | test-spawn.c | 190 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 …]
|
D | test-tcp-bind-error.c | 56 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 …]
|
D | test-pipe-bind-error.c | 48 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()
|
D | test-tcp-bind6-error.c | 47 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()
|
D | test-metrics.c | 48 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()
|
D | test-timer-again.c | 51 (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()
|
D | test-tcp-create-socket-early.c | 103 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()
|
D | test-loop-stop.c | 44 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()
|
D | test-tcp-connect-timeout.c | 69 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()
|
D | test-udp-create-socket-early.c | 43 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()
|
D | test-udp-open.c | 150 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 …]
|
D | test-ipc.c | 128 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 …]
|
D | test-timer-from-check.c | 65 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()
|
D | test-tcp-open.c | 220 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 …]
|
D | test-getaddrinfo.c | 51 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()
|
D | test-loop-time.c | 29 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()
|
D | test-threadpool.c | 50 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/ |
D | main.c | 22 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/ |
D | pollset_uv.cc | 49 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/ |
D | main.c | 11 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()
|