Lines Matching refs:threads
54 int threads = sysconf(_SC_NPROCESSORS_ONLN); in process() local
56 if (threads < WORK_MIN_THREADS) { in process()
57 threads = WORK_MIN_THREADS; in process()
58 } else if (threads > WORK_MAX_THREADS) { in process()
59 threads = WORK_MAX_THREADS; in process()
65 if ((size_t)threads > blocks) { in process()
66 threads = (int)blocks; in process()
69 size_t count_per_thread = fec_div_round_up(blocks, threads) * FEC_BLOCKSIZE; in process()
74 debug("%d threads, %zu bytes per thread (total %zu)", threads, in process()
78 process_info info[threads]; in process()
82 for (int i = 0; i < threads; ++i) { in process()