Lines Matching full:job

143 \&\- asynchronous job management functions
152 \& int ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret,
157 \& ASYNC_WAIT_CTX *ASYNC_get_wait_ctx(ASYNC_JOB *job);
168 subsequent event indicates that the job can be resumed.
173 the pool, used, and then returned to the pool when the job completes. If the
192 An asynchronous job is started by calling the \fBASYNC_start_job()\fR function.
193 Initially \fI*job\fR should be \s-1NULL.\s0 \fIctx\fR should point to an \fB\s-1ASYNC_WAIT_CTX\s0\fR
196 be stored on completion of the job. \fIfunc\fR represents the function that should
198 will be copied and then passed as an argument to \fIfunc\fR when the job starts.
202 An error occurred trying to start the job. Check the OpenSSL error queue (e.g.
210 The job was successfully started but was \*(L"paused\*(R" before it completed (see
211 \&\fBASYNC_pause_job()\fR below). A handle to the job is placed in \fI*job\fR. Other work
212 can be performed (if desired) and the job restarted at a later time. To restart
213 a job call \fBASYNC_start_job()\fR again passing the job handle in \fI*job\fR. The
214 \&\fIfunc\fR, \fIargs\fR and \fIsize\fR parameters will be ignored when restarting a job.
215 When restarting a job \fBASYNC_start_job()\fR \fBmust\fR be called from the same thread
216 that the job was originally started from.
219 The job completed. \fI*job\fR will be \s-1NULL\s0 and the return value from \fIfunc\fR will
222 At any one time there can be a maximum of one job actively running per thread
224 a pointer to the currently executing \fB\s-1ASYNC_JOB\s0\fR. If no job is currently
227 If executing within the context of a job (i.e. having been called directly or
232 \&\fI*job\fR parameter will resume execution from the \fBASYNC_pause_job()\fR call. If
233 \&\fBASYNC_pause_job()\fR is called whilst not within the context of a job then no
237 for the \fIjob\fR. \fB\s-1ASYNC_WAIT_CTX\s0\fRs contain two different ways to notify
238 applications that a job is ready to be resumed. One is a \*(L"wait\*(R" file
244 that the job should be resumed). If no file descriptor is made available then
245 an application will have to periodically \*(L"poll\*(R" the job by attempting to restart
258 The \fBASYNC_block_pause()\fR function will prevent the currently active job from
263 currently active job then they have no effect. This functionality can be useful
268 resuming the original job then a deadlock can occur. By calling
287 or \s-1NULL\s0 if not within the context of a job.
289 \&\fBASYNC_get_wait_ctx()\fR returns a pointer to the \fB\s-1ASYNC_WAIT_CTX\s0\fR for the job.
335 \& printf("Executing within a job\en");
337 \& printf("Not executing within a job \- should not happen\en");
360 \& * immediately signalling that the job is ready to be woken up after
371 \& printf ("Resumed the job after a pause\en");
378 \& ASYNC_JOB *job = NULL;
395 \& switch (ASYNC_start_job(&job, ctx, &ret, jobfunc, msg, sizeof(msg))) {
401 \& printf("Job was paused\en");
404 \& printf("Job finished with return value %d\en", ret);
408 \& /* Wait for the job to be woken */
409 \& printf("Waiting for the job to be woken up\en");
434 \& Executing within a job
436 \& Job was paused
437 \& Waiting for the job to be woken up
438 \& Resumed the job after a pause
439 \& Job finished with return value 1