Lines Matching refs:nthreads
38 static unsigned int ncpus, threads_starting, nthreads = 0; variable
42 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
80 nthreads, in print_summary()
91 threads_starting = nthreads; in block_threads()
94 for (i = 0; i < nthreads; i++) { in block_threads()
133 if (!nthreads) in bench_futex_wake()
134 nthreads = ncpus; in bench_futex_wake()
136 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_wake()
145 getpid(), nthreads, fshared ? "shared":"private", &futex1, nwakes); in bench_futex_wake()
172 while (nwoken != nthreads) in bench_futex_wake()
182 j + 1, nwoken, nthreads, runtime.tv_usec/1e3); in bench_futex_wake()
185 for (i = 0; i < nthreads; i++) { in bench_futex_wake()