Lines Matching refs:loop
53 uv_loop_t* loop; in TEST_IMPL() local
55 loop = uv_default_loop(); in TEST_IMPL()
56 uv_signal_init(loop, &signal); in TEST_IMPL()
72 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
133 static void start_watcher(uv_loop_t* loop, in start_watcher() argument
141 ASSERT_OK(uv_signal_init(loop, &ctx->handle)); in start_watcher()
148 static void start_timer(uv_loop_t* loop, int signum, struct timer_ctx* ctx) { in start_timer() argument
151 ASSERT_OK(uv_timer_init(loop, &ctx->handle)); in start_timer()
159 uv_loop_t* loop; in TEST_IMPL() local
161 loop = uv_default_loop(); in TEST_IMPL()
162 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
163 start_watcher(loop, SIGCHLD, &sc, 0); in TEST_IMPL()
165 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
169 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
170 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
178 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
179 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
183 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
191 uv_loop_t* loop; in TEST_IMPL() local
194 loop = uv_default_loop(); in TEST_IMPL()
195 start_watcher(loop, SIGUSR1, sc + 0, 0); in TEST_IMPL()
196 start_watcher(loop, SIGUSR1, sc + 1, 0); in TEST_IMPL()
197 start_watcher(loop, SIGUSR2, sc + 2, 0); in TEST_IMPL()
198 start_watcher(loop, SIGUSR2, sc + 3, 0); in TEST_IMPL()
199 start_timer(loop, SIGUSR1, tc + 0); in TEST_IMPL()
200 start_timer(loop, SIGUSR2, tc + 1); in TEST_IMPL()
201 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
209 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
216 uv_loop_t* loop; in TEST_IMPL() local
218 loop = uv_default_loop(); in TEST_IMPL()
219 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
220 start_watcher(loop, SIGCHLD, &sc, 1); in TEST_IMPL()
222 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
226 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
227 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
233 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
234 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
238 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()
245 uv_loop_t* loop; in TEST_IMPL() local
247 loop = uv_default_loop(); in TEST_IMPL()
250 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
251 start_watcher(loop, SIGCHLD, sc + 0, 1); in TEST_IMPL()
252 start_watcher(loop, SIGCHLD, sc + 1, 1); in TEST_IMPL()
255 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
261 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
262 start_watcher(loop, SIGCHLD, sc + 0, 1); in TEST_IMPL()
263 start_watcher(loop, SIGCHLD, sc + 1, 1); in TEST_IMPL()
266 start_watcher(loop, SIGCHLD, sc + 2, 0); in TEST_IMPL()
268 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
275 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
276 start_watcher(loop, SIGCHLD, sc + 0, 0); in TEST_IMPL()
277 start_watcher(loop, SIGCHLD, sc + 1, 0); in TEST_IMPL()
280 start_watcher(loop, SIGCHLD, sc + 2, 1); in TEST_IMPL()
282 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
289 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
290 start_watcher(loop, SIGCHLD, sc + 0, 0); in TEST_IMPL()
291 start_watcher(loop, SIGCHLD, sc + 1, 0); in TEST_IMPL()
292 start_watcher(loop, SIGCHLD, sc + 2, 1); in TEST_IMPL()
293 start_watcher(loop, SIGCHLD, sc + 3, 1); in TEST_IMPL()
298 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
306 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
307 start_watcher(loop, SIGCHLD, sc + 0, 0); in TEST_IMPL()
308 start_watcher(loop, SIGCHLD, sc + 1, 1); in TEST_IMPL()
309 start_watcher(loop, SIGCHLD, sc + 2, 0); in TEST_IMPL()
310 start_watcher(loop, SIGCHLD, sc + 3, 0); in TEST_IMPL()
314 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
321 MAKE_VALGRIND_HAPPY(loop); in TEST_IMPL()