Lines Matching refs:nthreads
30 static unsigned int ncpus, nthreads = 0; variable
39 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
114 threads_starting = nthreads; in create_threads()
116 for (i = 0; i < nthreads; i++) { in create_threads()
155 if (!nthreads) in bench_futex_lock_pi()
156 nthreads = ncpus; in bench_futex_lock_pi()
158 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_lock_pi()
166 getpid(), nthreads, nsecs); in bench_futex_lock_pi()
173 threads_starting = nthreads; in bench_futex_lock_pi()
189 for (i = 0; i < nthreads; i++) { in bench_futex_lock_pi()
200 for (i = 0; i < nthreads; i++) { in bench_futex_lock_pi()