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()
136 if (!nthreads) in bench_futex_requeue()
137 nthreads = cpu->nr; in bench_futex_requeue()
139 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_requeue()
146 if (nrequeue > nthreads) in bench_futex_requeue()
147 nrequeue = nthreads; in bench_futex_requeue()
150 "%d at a time.\n\n", getpid(), nthreads, in bench_futex_requeue()
178 while (nrequeued < nthreads) { in bench_futex_requeue()
195 j + 1, nrequeued, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC); in bench_futex_requeue()
200 if (nthreads != nrequeued) in bench_futex_requeue()
201 warnx("couldn't wakeup all tasks (%d/%d)", nrequeued, nthreads); in bench_futex_requeue()
203 for (i = 0; i < nthreads; i++) { in bench_futex_requeue()