Lines Matching full:job
68 \&\- asynchronous job management functions
77 \& int ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret,
82 \& ASYNC_WAIT_CTX *ASYNC_get_wait_ctx(ASYNC_JOB *job);
100 subsequent event indicates that the job can be resumed. It's OpenSSL
106 the pool, used, and then returned to the pool when the job completes. If the
125 An asynchronous job is started by calling the \fBASYNC_start_job()\fR function.
126 Initially \fI*job\fR should be NULL. \fIctx\fR should point to an \fBASYNC_WAIT_CTX\fR
129 be stored on completion of the job. \fIfunc\fR represents the function that should
131 will be copied and then passed as an argument to \fIfunc\fR when the job starts.
135 An error occurred trying to start the job. Check the OpenSSL error queue (e.g.
143 The job was successfully started but was "paused" before it completed (see
144 \&\fBASYNC_pause_job()\fR below). A handle to the job is placed in \fI*job\fR. Other work
145 can be performed (if desired) and the job restarted at a later time. To restart
146 a job call \fBASYNC_start_job()\fR again passing the job handle in \fI*job\fR. The
147 \&\fIfunc\fR, \fIargs\fR and \fIsize\fR parameters will be ignored when restarting a job.
148 When restarting a job \fBASYNC_start_job()\fR \fBmust\fR be called from the same thread
149 that the job was originally started from. \fBASYNC_WAIT_CTX\fR is used to
150 know when a job is ready to be restarted.
153 The job completed. \fI*job\fR will be NULL and the return value from \fIfunc\fR will
156 At any one time there can be a maximum of one job actively running per thread
158 a pointer to the currently executing \fBASYNC_JOB\fR. If no job is currently
161 If executing within the context of a job (i.e. having been called directly or
166 \&\fI*job\fR parameter will resume execution from the \fBASYNC_pause_job()\fR call. If
167 \&\fBASYNC_pause_job()\fR is called whilst not within the context of a job then no
171 for the \fIjob\fR (see \fBASYNC_WAIT_CTX_new\fR\|(3)).
173 applications that a job is ready to be resumed. One is a "wait" file
180 that the job should be resumed). If no file descriptor is made available then
181 an application will have to periodically "poll" the job by attempting to restart
194 The \fBASYNC_block_pause()\fR function will prevent the currently active job from
199 currently active job then they have no effect. This functionality can be useful
204 resuming the original job then a deadlock can occur. By calling
232 or NULL if not within the context of a job.
234 \&\fBASYNC_get_wait_ctx()\fR returns a pointer to the \fBASYNC_WAIT_CTX\fR for the job.
283 \& printf("Executing within a job\en");
285 \& printf("Not executing within a job \- should not happen\en");
293 \& * Create a way to inform the calling thread when this job is ready
317 \& * immediately signalling that the job is ready to be woken up after
332 \& printf ("Resumed the job after a pause\en");
339 \& ASYNC_JOB *job = NULL;
356 \& switch (ASYNC_start_job(&job, ctx, &ret, jobfunc, msg, sizeof(msg))) {
362 \& printf("Job was paused\en");
365 \& printf("Job finished with return value %d\en", ret);
369 \& /* Get the file descriptor we can use to wait for the job
372 \& printf("Waiting for the job to be woken up\en");
383 \& /* Wait for the job to be ready for wakeup */
399 \& Executing within a job
401 \& Job was paused
402 \& Waiting for the job to be woken up
403 \& Resumed the job after a pause
404 \& Job finished with return value 1