Lines Matching refs:waitctx
85 ASYNC_WAIT_CTX *waitctx; in waitfd() local
89 waitctx = ASYNC_get_wait_ctx(job); in waitfd()
90 if (waitctx == NULL) in waitfd()
97 if (!ASYNC_WAIT_CTX_set_wait_fd(waitctx, waitctx, MAGIC_WAIT_FD, NULL, NULL)) in waitfd()
102 if (!ASYNC_WAIT_CTX_clear_fd(waitctx, waitctx)) in waitfd()
107 if (!ASYNC_WAIT_CTX_set_wait_fd(waitctx, waitctx, MAGIC_WAIT_FD, NULL, NULL)) in waitfd()
109 if (!ASYNC_WAIT_CTX_clear_fd(waitctx, waitctx)) in waitfd()
129 ASYNC_WAIT_CTX *waitctx = NULL; in test_ASYNC_init_thread() local
132 || (waitctx = ASYNC_WAIT_CTX_new()) == NULL in test_ASYNC_init_thread()
133 || ASYNC_start_job(&job1, waitctx, &funcret1, only_pause, NULL, 0) in test_ASYNC_init_thread()
135 || ASYNC_start_job(&job2, waitctx, &funcret2, only_pause, NULL, 0) in test_ASYNC_init_thread()
137 || ASYNC_start_job(&job3, waitctx, &funcret3, only_pause, NULL, 0) in test_ASYNC_init_thread()
139 || ASYNC_start_job(&job1, waitctx, &funcret1, only_pause, NULL, 0) in test_ASYNC_init_thread()
141 || ASYNC_start_job(&job3, waitctx, &funcret3, only_pause, NULL, 0) in test_ASYNC_init_thread()
143 || ASYNC_start_job(&job2, waitctx, &funcret2, only_pause, NULL, 0) in test_ASYNC_init_thread()
145 || ASYNC_start_job(&job3, waitctx, &funcret3, only_pause, NULL, 0) in test_ASYNC_init_thread()
151 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_init_thread()
156 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_init_thread()
169 ASYNC_WAIT_CTX *waitctx = NULL; in test_ASYNC_callback_status() local
176 || (waitctx = ASYNC_WAIT_CTX_new()) == NULL in test_ASYNC_callback_status()
177 || ASYNC_WAIT_CTX_set_callback(waitctx, test_callback, (void*)&set_arg) in test_ASYNC_callback_status()
179 || ASYNC_WAIT_CTX_get_callback(waitctx, &get_callback, &get_arg) in test_ASYNC_callback_status()
184 || ASYNC_WAIT_CTX_set_status(waitctx, set_status) != 1 in test_ASYNC_callback_status()
185 || set_status != ASYNC_WAIT_CTX_get_status(waitctx)) { in test_ASYNC_callback_status()
187 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_callback_status()
192 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_callback_status()
202 ASYNC_WAIT_CTX *waitctx = NULL; in test_ASYNC_start_job() local
207 || (waitctx = ASYNC_WAIT_CTX_new()) == NULL in test_ASYNC_start_job()
208 || ASYNC_start_job(&job, waitctx, &funcret, add_two, NULL, 0) in test_ASYNC_start_job()
211 || ASYNC_start_job(&job, waitctx, &funcret, add_two, NULL, 0) in test_ASYNC_start_job()
216 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_start_job()
221 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_start_job()
230 ASYNC_WAIT_CTX *waitctx = NULL; in test_ASYNC_get_current_job() local
235 || (waitctx = ASYNC_WAIT_CTX_new()) == NULL in test_ASYNC_get_current_job()
236 || ASYNC_start_job(&job, waitctx, &funcret, save_current, NULL, 0) in test_ASYNC_get_current_job()
239 || ASYNC_start_job(&job, waitctx, &funcret, save_current, NULL, 0) in test_ASYNC_get_current_job()
243 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_get_current_job()
248 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_get_current_job()
257 ASYNC_WAIT_CTX *waitctx = NULL; in test_ASYNC_WAIT_CTX_get_all_fds() local
262 || (waitctx = ASYNC_WAIT_CTX_new()) == NULL in test_ASYNC_WAIT_CTX_get_all_fds()
264 || ASYNC_start_job(&job, waitctx, &funcret, waitfd, NULL, 0) in test_ASYNC_WAIT_CTX_get_all_fds()
266 || !ASYNC_WAIT_CTX_get_all_fds(waitctx, NULL, &numfds) in test_ASYNC_WAIT_CTX_get_all_fds()
268 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, NULL, &numfds, NULL, in test_ASYNC_WAIT_CTX_get_all_fds()
273 || ASYNC_start_job(&job, waitctx, &funcret, waitfd, NULL, 0) in test_ASYNC_WAIT_CTX_get_all_fds()
275 || !ASYNC_WAIT_CTX_get_all_fds(waitctx, NULL, &numfds) in test_ASYNC_WAIT_CTX_get_all_fds()
277 || !ASYNC_WAIT_CTX_get_all_fds(waitctx, &fd, &numfds) in test_ASYNC_WAIT_CTX_get_all_fds()
280 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, NULL, &numfds, NULL, in test_ASYNC_WAIT_CTX_get_all_fds()
284 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, &fd, &numfds, NULL, in test_ASYNC_WAIT_CTX_get_all_fds()
288 || ASYNC_start_job(&job, waitctx, &funcret, waitfd, NULL, 0) in test_ASYNC_WAIT_CTX_get_all_fds()
290 || !ASYNC_WAIT_CTX_get_all_fds(waitctx, NULL, &numfds) in test_ASYNC_WAIT_CTX_get_all_fds()
292 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, NULL, &numfds, NULL, in test_ASYNC_WAIT_CTX_get_all_fds()
296 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, NULL, &numfds, &delfd, in test_ASYNC_WAIT_CTX_get_all_fds()
300 || ASYNC_start_job(&job, waitctx, &funcret, waitfd, NULL, 0) in test_ASYNC_WAIT_CTX_get_all_fds()
302 || !ASYNC_WAIT_CTX_get_all_fds(waitctx, NULL, &numfds) in test_ASYNC_WAIT_CTX_get_all_fds()
304 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, NULL, &numfds, NULL, in test_ASYNC_WAIT_CTX_get_all_fds()
310 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_WAIT_CTX_get_all_fds()
315 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_WAIT_CTX_get_all_fds()
324 ASYNC_WAIT_CTX *waitctx = NULL; in test_ASYNC_block_pause() local
327 || (waitctx = ASYNC_WAIT_CTX_new()) == NULL in test_ASYNC_block_pause()
328 || ASYNC_start_job(&job, waitctx, &funcret, blockpause, NULL, 0) in test_ASYNC_block_pause()
330 || ASYNC_start_job(&job, waitctx, &funcret, blockpause, NULL, 0) in test_ASYNC_block_pause()
334 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_block_pause()
339 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_block_pause()
348 ASYNC_WAIT_CTX *waitctx = NULL; in test_ASYNC_start_job_ex() local
361 if ((waitctx = ASYNC_WAIT_CTX_new()) == NULL in test_ASYNC_start_job_ex()
362 || ASYNC_start_job(&job, waitctx, &funcret, change_deflt_libctx, in test_ASYNC_start_job_ex()
379 if (ASYNC_start_job(&job, waitctx, &funcret, change_deflt_libctx, NULL, 0) in test_ASYNC_start_job_ex()
394 if (ASYNC_start_job(&job, waitctx, &funcret, change_deflt_libctx, NULL, 0) in test_ASYNC_start_job_ex()
413 ASYNC_WAIT_CTX_free(waitctx); in test_ASYNC_start_job_ex()