Lines Matching refs:nb_jobs
39 int nb_jobs; member
49 … void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads);
55 unsigned nb_jobs = ctx->nb_jobs; in run_jobs() local
61 ctx->worker_func(ctx->priv, current_job, first_job, nb_jobs, nb_active_threads); in run_jobs()
62 … ((current_job = atomic_fetch_add_explicit(&ctx->current_job, 1, memory_order_acq_rel)) < nb_jobs); in run_jobs()
64 return current_job == nb_jobs + nb_active_threads - 1; in run_jobs()
95 … void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads), in avpriv_slicethread_create() argument
129 ctx->nb_jobs = 0; in avpriv_slicethread_create()
164 void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main) in avpriv_slicethread_execute() argument
168 av_assert0(nb_jobs > 0); in avpriv_slicethread_execute()
169 ctx->nb_jobs = nb_jobs; in avpriv_slicethread_execute()
170 ctx->nb_active_threads = FFMIN(nb_jobs, ctx->nb_threads); in avpriv_slicethread_execute()
237 … void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads), in avpriv_slicethread_create() argument
245 void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main) in avpriv_slicethread_execute() argument