Lines Matching refs:nthreads
22 unsigned int nthreads;
26 .nthreads = 1,
33 OPT_UINTEGER('t', "threads", &thread_params.nthreads, "Specify amount of threads"),
91 threads = calloc(thread_params.nthreads, sizeof(threads[0]));
97 for (i = 0; i < thread_params.nthreads; i++) {
102 futex_wake(&done, thread_params.nthreads, 0);
103 for (i = 0; i < thread_params.nthreads; i++)
111 // then starts nparallel threads which create and join bench_repeat batches of nthreads threads.
161 (double)result_usec / bench_repeat / thread_params.nthreads);
164 thread_params.nthreads * thread_params.nparallel);
200 unsigned int i, nthreads, result_usec, done = 0;
219 nthreads = enable_params.npassive + enable_params.nactive;
220 threads = calloc(nthreads, sizeof(threads[0]));
224 for (i = 0; i < nthreads; i++) {
241 for (i = 0; i < nthreads; i++)