Lines Matching refs:nthreads
45 static unsigned int threads_starting, nthreads = 0; variable
49 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
69 nthreads, in print_summary()
93 threads_starting = nthreads; in block_threads()
96 for (i = 0; i < nthreads; i++) { in block_threads()
135 if (!nthreads) in bench_futex_requeue()
136 nthreads = cpu->nr; in bench_futex_requeue()
138 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_requeue()
145 if (nrequeue > nthreads) in bench_futex_requeue()
146 nrequeue = nthreads; in bench_futex_requeue()
149 "%d at a time.\n\n", getpid(), nthreads, in bench_futex_requeue()
177 while (nrequeued < nthreads) { in bench_futex_requeue()
194 j + 1, nrequeued, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC); in bench_futex_requeue()
199 if (nthreads != nrequeued) in bench_futex_requeue()
200 warnx("couldn't wakeup all tasks (%d/%d)", nrequeued, nthreads); in bench_futex_requeue()
202 for (i = 0; i < nthreads; i++) { in bench_futex_requeue()