Lines Matching defs:threads
354 int threads = ctx->threads;
356 if (threads < IMAGE_MIN_THREADS) {
357 threads = sysconf(_SC_NPROCESSORS_ONLN);
359 if (threads < IMAGE_MIN_THREADS) {
360 threads = IMAGE_MIN_THREADS;
366 if ((uint64_t)threads > ctx->rounds) {
367 threads = (int)ctx->rounds;
369 if (threads > IMAGE_MAX_THREADS) {
370 threads = IMAGE_MAX_THREADS;
374 INFO("starting %d threads to compute RS(255, %d)\n", threads,
378 pthread_t pthreads[threads];
379 image_proc_ctx args[threads];
384 fec_div_round_up(ctx->rounds * FEC_BLOCKSIZE, threads);
390 for (int i = 0; i < threads; ++i) {
407 } else if (i == threads && args[i].end + rs_blocks_per_thread *
429 for (int i = 0; i < threads; ++i) {