Lines Matching refs:req
32 #define sync_stat(req, path) \ argument
34 uv_fs_stat(NULL, (req), (path), NULL); \
35 uv_fs_req_cleanup((req)); \
66 uv_fs_t req; in sync_bench() local
73 sync_stat(&req, path); in sync_bench()
86 struct async_req* req = container_of(fs_req, struct async_req, fs_req); in stat_cb() local
87 uv_fs_req_cleanup(&req->fs_req); in stat_cb()
88 if (*req->count == 0) return; in stat_cb()
89 uv_fs_stat(uv_default_loop(), &req->fs_req, req->path, stat_cb); in stat_cb()
90 (*req->count)--; in stat_cb()
96 struct async_req* req; in async_bench() local
106 for (req = reqs; req < reqs + i; req++) { in async_bench()
107 req->path = path; in async_bench()
108 req->count = &count; in async_bench()
109 uv_fs_stat(uv_default_loop(), &req->fs_req, req->path, stat_cb); in async_bench()