Lines Matching refs:nthreads
44 static unsigned int threads_starting, nthreads = 0; variable
48 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
68 nthreads, in print_summary()
92 threads_starting = nthreads; in block_threads()
95 for (i = 0; i < nthreads; i++) { in block_threads()
134 if (!nthreads) in bench_futex_requeue()
135 nthreads = cpu->nr; in bench_futex_requeue()
137 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_requeue()
144 if (nrequeue > nthreads) in bench_futex_requeue()
145 nrequeue = nthreads; in bench_futex_requeue()
148 "%d at a time.\n\n", getpid(), nthreads, in bench_futex_requeue()
176 while (nrequeued < nthreads) { in bench_futex_requeue()
193 j + 1, nrequeued, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC); in bench_futex_requeue()
198 if (nthreads != nrequeued) in bench_futex_requeue()
199 warnx("couldn't wakeup all tasks (%d/%d)", nrequeued, nthreads); in bench_futex_requeue()
201 for (i = 0; i < nthreads; i++) { in bench_futex_requeue()