Lines Matching refs:nb_jobs
41 int nb_jobs;
51 void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads);
57 unsigned nb_jobs = ctx->nb_jobs;
63 ctx->worker_func(ctx->priv, current_job, first_job, nb_jobs, nb_active_threads);
64 } while ((current_job = atomic_fetch_add_explicit(&ctx->current_job, 1, memory_order_acq_rel)) < nb_jobs);
66 return current_job == nb_jobs + nb_active_threads - 1;
97 void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads),
131 ctx->nb_jobs = 0;
166 void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main)
170 av_assert0(nb_jobs > 0);
171 ctx->nb_jobs = nb_jobs;
172 ctx->nb_active_threads = FFMIN(nb_jobs, ctx->nb_threads);
239 void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads),
247 void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main)