Lines Matching refs:threads
355 int threads = ctx->threads; in image_process() local
357 if (threads < IMAGE_MIN_THREADS) { in image_process()
358 threads = sysconf(_SC_NPROCESSORS_ONLN); in image_process()
360 if (threads < IMAGE_MIN_THREADS) { in image_process()
361 threads = IMAGE_MIN_THREADS; in image_process()
367 if ((uint64_t)threads > ctx->rounds) { in image_process()
368 threads = (int)ctx->rounds; in image_process()
370 if (threads > IMAGE_MAX_THREADS) { in image_process()
371 threads = IMAGE_MAX_THREADS; in image_process()
375 INFO("starting %d threads to compute RS(255, %d)\n", threads, in image_process()
379 pthread_t pthreads[threads]; in image_process()
380 image_proc_ctx args[threads]; in image_process()
385 fec_div_round_up(ctx->rounds * FEC_BLOCKSIZE, threads); in image_process()
391 for (int i = 0; i < threads; ++i) { in image_process()
408 } else if (i == threads && args[i].end + rs_blocks_per_thread * in image_process()
430 for (int i = 0; i < threads; ++i) { in image_process()