Lines Matching refs:threads
540 int threads = ctx->threads; in image_process() local
542 if (threads < IMAGE_MIN_THREADS) { in image_process()
543 threads = sysconf(_SC_NPROCESSORS_ONLN); in image_process()
545 if (threads < IMAGE_MIN_THREADS) { in image_process()
546 threads = IMAGE_MIN_THREADS; in image_process()
552 if ((uint64_t)threads > ctx->rounds) { in image_process()
553 threads = (int)ctx->rounds; in image_process()
555 if (threads > IMAGE_MAX_THREADS) { in image_process()
556 threads = IMAGE_MAX_THREADS; in image_process()
560 INFO("starting %d threads to compute RS(255, %d)\n", threads, in image_process()
564 pthread_t pthreads[threads]; in image_process()
565 image_proc_ctx args[threads]; in image_process()
570 fec_div_round_up(ctx->rounds * FEC_BLOCKSIZE, threads); in image_process()
576 for (int i = 0; i < threads; ++i) { in image_process()
593 } else if (i == threads && args[i].end + rs_blocks_per_thread * in image_process()
615 for (int i = 0; i < threads; ++i) { in image_process()