Lines Matching full:job
40 tpool_job_t *job; in delete_pool() local
61 for (job = tpool->tp_head; job != NULL; job = tpool->tp_head) { in delete_pool()
62 tpool->tp_head = job->tpj_next; in delete_pool()
63 free(job); in delete_pool()
100 * Called by a worker thread on return from a tpool_dispatch()d job.
128 tpool_job_t *job; in tpool_worker() local
178 if ((job = tpool->tp_head) != NULL && in tpool_worker()
181 func = job->tpj_func; in tpool_worker()
182 arg = job->tpj_arg; in tpool_worker()
183 tpool->tp_head = job->tpj_next; in tpool_worker()
184 if (job == tpool->tp_tail) in tpool_worker()
191 free(job); in tpool_worker()
409 * Else just return with the job added to the queue.
414 tpool_job_t *job; in tpool_dispatch() local
418 if ((job = calloc(1, sizeof (*job))) == NULL) in tpool_dispatch()
420 job->tpj_next = NULL; in tpool_dispatch()
421 job->tpj_func = func; in tpool_dispatch()
422 job->tpj_arg = arg; in tpool_dispatch()
440 free(job); in tpool_dispatch()
447 tpool->tp_head = job; in tpool_dispatch()
449 tpool->tp_tail->tpj_next = job; in tpool_dispatch()
450 tpool->tp_tail = job; in tpool_dispatch()
468 * Calling tpool_destroy() from a job in the pool will cause deadlock.
529 * Calling tpool_wait() from a job in the pool will cause deadlock.