Lines Matching defs:nthreads
91 static unsigned int nthreads = 0;
128 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
310 for (i = 0; i < nthreads; i++) {
381 shuffle((void *)worker, nthreads, sizeof(*worker));
384 for (i = 0; i < nthreads; i++) {
455 if (!nthreads)
456 nthreads = cpu->nr - 1;
458 worker = calloc(nthreads, sizeof(*worker));
465 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50;
473 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs);
480 threads_starting = nthreads;
519 qsort(worker, nthreads, sizeof(struct worker), cmpworker);
521 for (i = 0; i < nthreads; i++) {