Lines Matching refs:loop
68 uv_loop_t* loop; in saturate_threadpool() local
78 loop = uv_default_loop(); in saturate_threadpool()
81 ASSERT_OK(uv_queue_work(loop, pause_reqs + i, work_cb, done_cb)); in saturate_threadpool()
204 uv_loop_t* loop; in TEST_IMPL() local
208 loop = uv_default_loop(); in TEST_IMPL()
211 r = uv_getaddrinfo(loop, reqs + 0, getaddrinfo_cb, "fail", NULL, NULL); in TEST_IMPL()
214 r = uv_getaddrinfo(loop, reqs + 1, getaddrinfo_cb, NULL, "fail", NULL); in TEST_IMPL()
217 r = uv_getaddrinfo(loop, reqs + 2, getaddrinfo_cb, "fail", "fail", NULL); in TEST_IMPL()
220 r = uv_getaddrinfo(loop, reqs + 3, getaddrinfo_cb, "fail", NULL, &hints); in TEST_IMPL()
223 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
225 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
228 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
237 uv_loop_t* loop; in TEST_IMPL() local
244 loop = uv_default_loop(); in TEST_IMPL()
247 r = uv_getnameinfo(loop, reqs + 0, getnameinfo_cb, (const struct sockaddr*)&addr4, 0); in TEST_IMPL()
250 r = uv_getnameinfo(loop, reqs + 1, getnameinfo_cb, (const struct sockaddr*)&addr4, 0); in TEST_IMPL()
253 r = uv_getnameinfo(loop, reqs + 2, getnameinfo_cb, (const struct sockaddr*)&addr4, 0); in TEST_IMPL()
256 r = uv_getnameinfo(loop, reqs + 3, getnameinfo_cb, (const struct sockaddr*)&addr4, 0); in TEST_IMPL()
259 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
261 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
264 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
271 uv_loop_t* loop; in TEST_IMPL() local
274 loop = uv_default_loop(); in TEST_IMPL()
275 ASSERT_OK(uv_random(loop, in TEST_IMPL()
284 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
287 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
295 uv_loop_t* loop; in TEST_IMPL() local
299 loop = uv_default_loop(); in TEST_IMPL()
303 ASSERT_OK(uv_queue_work(loop, reqs + i, work2_cb, done2_cb)); in TEST_IMPL()
305 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
307 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
311 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
319 uv_loop_t* loop; in TEST_IMPL() local
324 loop = uv_default_loop(); in TEST_IMPL()
330 ASSERT_OK(uv_fs_chmod(loop, reqs + n++, "/", 0, fs_cb)); in TEST_IMPL()
331 ASSERT_OK(uv_fs_chown(loop, reqs + n++, "/", 0, 0, fs_cb)); in TEST_IMPL()
332 ASSERT_OK(uv_fs_close(loop, reqs + n++, 0, fs_cb)); in TEST_IMPL()
333 ASSERT_OK(uv_fs_fchmod(loop, reqs + n++, 0, 0, fs_cb)); in TEST_IMPL()
334 ASSERT_OK(uv_fs_fchown(loop, reqs + n++, 0, 0, 0, fs_cb)); in TEST_IMPL()
335 ASSERT_OK(uv_fs_fdatasync(loop, reqs + n++, 0, fs_cb)); in TEST_IMPL()
336 ASSERT_OK(uv_fs_fstat(loop, reqs + n++, 0, fs_cb)); in TEST_IMPL()
337 ASSERT_OK(uv_fs_fsync(loop, reqs + n++, 0, fs_cb)); in TEST_IMPL()
338 ASSERT_OK(uv_fs_ftruncate(loop, reqs + n++, 0, 0, fs_cb)); in TEST_IMPL()
339 ASSERT_OK(uv_fs_futime(loop, reqs + n++, 0, 0, 0, fs_cb)); in TEST_IMPL()
340 ASSERT_OK(uv_fs_link(loop, reqs + n++, "/", "/", fs_cb)); in TEST_IMPL()
341 ASSERT_OK(uv_fs_lstat(loop, reqs + n++, "/", fs_cb)); in TEST_IMPL()
342 ASSERT_OK(uv_fs_mkdir(loop, reqs + n++, "/", 0, fs_cb)); in TEST_IMPL()
343 ASSERT_OK(uv_fs_open(loop, reqs + n++, "/", 0, 0, fs_cb)); in TEST_IMPL()
344 ASSERT_OK(uv_fs_read(loop, reqs + n++, -1, &iov, 1, 0, fs_cb)); in TEST_IMPL()
345 ASSERT_OK(uv_fs_scandir(loop, reqs + n++, "/", 0, fs_cb)); in TEST_IMPL()
346 ASSERT_OK(uv_fs_readlink(loop, reqs + n++, "/", fs_cb)); in TEST_IMPL()
347 ASSERT_OK(uv_fs_realpath(loop, reqs + n++, "/", fs_cb)); in TEST_IMPL()
348 ASSERT_OK(uv_fs_rename(loop, reqs + n++, "/", "/", fs_cb)); in TEST_IMPL()
349 ASSERT_OK(uv_fs_mkdir(loop, reqs + n++, "/", 0, fs_cb)); in TEST_IMPL()
350 ASSERT_OK(uv_fs_sendfile(loop, reqs + n++, 0, 0, 0, 0, fs_cb)); in TEST_IMPL()
351 ASSERT_OK(uv_fs_stat(loop, reqs + n++, "/", fs_cb)); in TEST_IMPL()
352 ASSERT_OK(uv_fs_symlink(loop, reqs + n++, "/", "/", 0, fs_cb)); in TEST_IMPL()
353 ASSERT_OK(uv_fs_unlink(loop, reqs + n++, "/", fs_cb)); in TEST_IMPL()
354 ASSERT_OK(uv_fs_utime(loop, reqs + n++, "/", 0, 0, fs_cb)); in TEST_IMPL()
355 ASSERT_OK(uv_fs_write(loop, reqs + n++, -1, &iov, 1, 0, fs_cb)); in TEST_IMPL()
358 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
360 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
365 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
371 uv_loop_t* loop; in TEST_IMPL() local
375 loop = uv_default_loop(); in TEST_IMPL()
376 ASSERT_OK(uv_queue_work(loop, &req, (uv_work_cb) abort, nop_done_cb)); in TEST_IMPL()
380 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
383 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()