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