Lines Matching refs:r
88 int r; in signal_handling_worker() local
96 r = uv_signal_init(&loop, &signal1a); in signal_handling_worker()
97 ASSERT_OK(r); in signal_handling_worker()
98 r = uv_signal_start(&signal1a, signal1_cb, SIGUSR1); in signal_handling_worker()
99 ASSERT_OK(r); in signal_handling_worker()
100 r = uv_signal_init(&loop, &signal1b); in signal_handling_worker()
101 ASSERT_OK(r); in signal_handling_worker()
102 r = uv_signal_start(&signal1b, signal1_cb, SIGUSR1); in signal_handling_worker()
103 ASSERT_OK(r); in signal_handling_worker()
107 r = uv_signal_init(&loop, &signal2); in signal_handling_worker()
108 ASSERT_OK(r); in signal_handling_worker()
109 r = uv_signal_start(&signal2, signal2_cb, SIGUSR2); in signal_handling_worker()
110 ASSERT_OK(r); in signal_handling_worker()
119 r = uv_run(&loop, UV_RUN_DEFAULT); in signal_handling_worker()
120 ASSERT_OK(r); in signal_handling_worker()
124 r = uv_signal_start(&signal1a, signal1_cb, SIGUSR1); in signal_handling_worker()
125 ASSERT_OK(r); in signal_handling_worker()
126 r = uv_signal_start(&signal1b, signal1_cb, SIGUSR1); in signal_handling_worker()
127 ASSERT_OK(r); in signal_handling_worker()
131 r = uv_signal_start(&signal2, signal2_cb, SIGUSR2); in signal_handling_worker()
132 ASSERT_OK(r); in signal_handling_worker()
138 r = uv_run(&loop, UV_RUN_DEFAULT); in signal_handling_worker()
139 ASSERT_OK(r); in signal_handling_worker()
152 r = uv_run(&loop, UV_RUN_DEFAULT); in signal_handling_worker()
153 ASSERT_OK(r); in signal_handling_worker()
172 int r; in loop_creating_worker() local
178 r = uv_signal_init(loop, &signal); in loop_creating_worker()
179 ASSERT_OK(r); in loop_creating_worker()
181 r = uv_signal_start(&signal, signal_unexpected_cb, SIGTERM); in loop_creating_worker()
182 ASSERT_OK(r); in loop_creating_worker()
186 r = uv_run(loop, UV_RUN_DEFAULT); in loop_creating_worker()
187 ASSERT_OK(r); in loop_creating_worker()
229 int r; in TEST_IMPL() local
231 r = uv_sem_init(&sem, 0); in TEST_IMPL()
232 ASSERT_OK(r); in TEST_IMPL()
234 r = uv_mutex_init(&lock); in TEST_IMPL()
235 ASSERT_OK(r); in TEST_IMPL()
239 r = uv_thread_create(&loop_creating_threads[i], in TEST_IMPL()
242 ASSERT_OK(r); in TEST_IMPL()
253 r = uv_thread_create(&signal_handling_threads[i], in TEST_IMPL()
256 ASSERT_OK(r); in TEST_IMPL()
263 r = kill(getpid(), SIGUSR1); in TEST_IMPL()
264 ASSERT_OK(r); in TEST_IMPL()
265 r = kill(getpid(), SIGUSR2); in TEST_IMPL()
266 ASSERT_OK(r); in TEST_IMPL()
279 r = kill(getpid(), SIGUSR1); in TEST_IMPL()
280 ASSERT_OK(r); in TEST_IMPL()
281 r = kill(getpid(), SIGUSR2); in TEST_IMPL()
282 ASSERT_OK(r); in TEST_IMPL()
286 r = uv_thread_join(&signal_handling_threads[i]); in TEST_IMPL()
287 ASSERT_OK(r); in TEST_IMPL()
297 r = uv_thread_join(&loop_creating_threads[i]); in TEST_IMPL()
298 ASSERT_OK(r); in TEST_IMPL()