Lines Matching refs:nb_jobs
55 int nb_jobs;
68 int our_job = c->nb_jobs;
76 while (our_job >= c->nb_jobs) {
77 if (c->current_job == nb_threads + c->nb_jobs)
92 c->rets[our_job % c->nb_rets] = c->func(c->ctx, c->arg, our_job, c->nb_jobs);
119 while (c->current_job != c->nb_threads + c->nb_jobs)
125 void *arg, int *ret, int nb_jobs)
130 if (nb_jobs <= 0)
136 c->nb_jobs = nb_jobs;
142 c->nb_rets = nb_jobs;
178 c->nb_jobs = 0;