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 size_t count_per_thread = fec_div_round_up(blocks, threads) * FEC_BLOCKSIZE; in process()
68 if ((size_t)threads > max_threads) { in process()
69 threads = (int)max_threads; in process()
76 debug("%d threads, %zu bytes per thread (total %zu)", threads, in process()
80 process_info info[threads]; in process()
84 for (int i = 0; i < threads; ++i) { in process()