Lines Matching defs:job
99 struct threadpool_job job;
105 test_job_func_schedule(struct threadpool_job *job)
108 container_of(job, struct test_job_data, job);
114 threadpool_job_done(job);
119 test_job_func_cancel(struct threadpool_job *job)
122 container_of(job, struct test_job_data, job);
133 threadpool_job_done(job);
142 threadpool_job_init(&data->job, fn, &data->mutex, "testjob");
149 threadpool_job_destroy(&data->job);
168 threadpool_schedule_job(pool, &data.job);
196 threadpool_schedule_job(pool, &data.job);
221 threadpool_schedule_job(pool, &data.job);
226 /* Job is already running (and is not finished); this should fail. */
227 rv = threadpool_cancel_job_async(pool, &data.job);
233 /* Now wait for the job to finish. */
234 threadpool_cancel_job(pool, &data.job);
257 threadpool_schedule_job(pool, &data.job);
263 * If the job managed to start, ensure that its exit
265 * for the job to finish.
270 threadpool_cancel_job(pool, &data.job);
273 * After cancellation, either the job didn't start