Lines Matching refs:nthreads
45 static unsigned int threads_starting, nthreads = 0;
49 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
69 nthreads,
93 threads_starting = nthreads;
96 for (i = 0; i < nthreads; i++) {
136 if (!nthreads)
137 nthreads = cpu->nr;
139 worker = calloc(nthreads, sizeof(*worker));
146 if (nrequeue > nthreads)
147 nrequeue = nthreads;
150 "%d at a time.\n\n", getpid(), nthreads,
178 while (nrequeued < nthreads) {
195 j + 1, nrequeued, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC);
200 if (nthreads != nrequeued)
201 warnx("couldn't wakeup all tasks (%d/%d)", nrequeued, nthreads);
203 for (i = 0; i < nthreads; i++) {