ASYNC_start_job

Start or resume an asynchronous job.

Synopsis

Declared in <openssl/async.h>

int
ASYNC_start_job(
    ASYNC_JOB** job,
    ASYNC_WAIT_CTX* ctx,
    int* ret,
    int(* func)(void*),
    void* args,
    size_t size);

Return Value

ASYNC_ERR, ASYNC_NO_JOBS, ASYNC_PAUSE, or ASYNC_FINISH.

Parameters

NameDescription
jobLocation of the job pointer; updated when the job pauses or finishes.
ctxWait context used while the job is running.
retReceives the job function's return value when the job finishes.
funcFunction to run asynchronously; receives args.
argsArgument passed to func.
sizeSize in bytes of the memory copied into the job for args.