Lines Matching refs:currjob

47     nctx->currjob = NULL;  in async_ctx_new()
157 job = ctx->currjob; in async_start_func()
189 ctx->currjob = *job; in ASYNC_start_job()
192 if (ctx->currjob != NULL) { in ASYNC_start_job()
193 if (ctx->currjob->status == ASYNC_JOB_STOPPING) { in ASYNC_start_job()
194 *ret = ctx->currjob->ret; in ASYNC_start_job()
195 ctx->currjob->waitctx = NULL; in ASYNC_start_job()
196 async_release_job(ctx->currjob); in ASYNC_start_job()
197 ctx->currjob = NULL; in ASYNC_start_job()
202 if (ctx->currjob->status == ASYNC_JOB_PAUSING) { in ASYNC_start_job()
203 *job = ctx->currjob; in ASYNC_start_job()
204 ctx->currjob->status = ASYNC_JOB_PAUSED; in ASYNC_start_job()
205 ctx->currjob = NULL; in ASYNC_start_job()
209 if (ctx->currjob->status == ASYNC_JOB_PAUSED) { in ASYNC_start_job()
212 ctx->currjob = *job; in ASYNC_start_job()
218 libctx = OSSL_LIB_CTX_set0_default(ctx->currjob->libctx); in ASYNC_start_job()
226 &ctx->currjob->fibrectx, 1)) { in ASYNC_start_job()
227 ctx->currjob->libctx = OSSL_LIB_CTX_set0_default(libctx); in ASYNC_start_job()
236 ctx->currjob->libctx = OSSL_LIB_CTX_set0_default(libctx); in ASYNC_start_job()
242 async_release_job(ctx->currjob); in ASYNC_start_job()
243 ctx->currjob = NULL; in ASYNC_start_job()
249 if ((ctx->currjob = async_get_pool_job()) == NULL) in ASYNC_start_job()
253 ctx->currjob->funcargs = OPENSSL_malloc(size); in ASYNC_start_job()
254 if (ctx->currjob->funcargs == NULL) { in ASYNC_start_job()
255 async_release_job(ctx->currjob); in ASYNC_start_job()
256 ctx->currjob = NULL; in ASYNC_start_job()
259 memcpy(ctx->currjob->funcargs, args, size); in ASYNC_start_job()
261 ctx->currjob->funcargs = NULL; in ASYNC_start_job()
264 ctx->currjob->func = func; in ASYNC_start_job()
265 ctx->currjob->waitctx = wctx; in ASYNC_start_job()
268 &ctx->currjob->fibrectx, 1)) { in ASYNC_start_job()
276 ctx->currjob->libctx = OSSL_LIB_CTX_set0_default(libctx); in ASYNC_start_job()
280 async_release_job(ctx->currjob); in ASYNC_start_job()
281 ctx->currjob = NULL; in ASYNC_start_job()
292 || ctx->currjob == NULL in ASYNC_pause_job()
301 job = ctx->currjob; in ASYNC_pause_job()
440 return ctx->currjob; in ASYNC_get_current_job()
456 if (ctx == NULL || ctx->currjob == NULL) { in ASYNC_block_pause()
473 if (ctx == NULL || ctx->currjob == NULL) { in ASYNC_unblock_pause()