Lines Matching refs:loop
34 static uv_loop_t* loop; variable
163 ASSERT_OK(uv_tcp_init(loop, &tcp_accepted)); in connection_cb()
170 static void start_server(uv_loop_t* loop, uv_tcp_t* handle) { in start_server() argument
176 r = uv_tcp_init(loop, handle); in start_server()
187 static void do_connect(uv_loop_t* loop, uv_tcp_t* tcp_client) { in do_connect() argument
193 r = uv_tcp_init(loop, tcp_client); in do_connect()
210 loop = uv_default_loop(); in TEST_IMPL()
212 start_server(loop, &tcp_server); in TEST_IMPL()
217 do_connect(loop, &tcp_client); in TEST_IMPL()
223 r = uv_run(loop, UV_RUN_DEFAULT); in TEST_IMPL()
230 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
237 loop = uv_default_loop(); in TEST_IMPL()
239 start_server(loop, &tcp_server); in TEST_IMPL()
244 do_connect(loop, &tcp_client); in TEST_IMPL()
250 r = uv_run(loop, UV_RUN_DEFAULT); in TEST_IMPL()
257 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
264 loop = uv_default_loop(); in TEST_IMPL()
266 start_server(loop, &tcp_server); in TEST_IMPL()
271 do_connect(loop, &tcp_client); in TEST_IMPL()
277 r = uv_run(loop, UV_RUN_DEFAULT); in TEST_IMPL()
284 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
291 loop = uv_default_loop(); in TEST_IMPL()
293 start_server(loop, &tcp_server); in TEST_IMPL()
298 do_connect(loop, &tcp_client); in TEST_IMPL()
304 r = uv_run(loop, UV_RUN_DEFAULT); in TEST_IMPL()
311 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
318 loop = uv_default_loop(); in TEST_IMPL()
320 start_server(loop, &tcp_server); in TEST_IMPL()
325 do_connect(loop, &tcp_client); in TEST_IMPL()
331 r = uv_run(loop, UV_RUN_DEFAULT); in TEST_IMPL()
338 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()