Lines Matching refs:nthreads
90 static unsigned int nthreads = 0; variable
127 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
309 for (i = 0; i < nthreads; i++) { in do_threads()
380 shuffle((void *)worker, nthreads, sizeof(*worker)); in writerfn()
383 for (i = 0; i < nthreads; i++) { in writerfn()
454 if (!nthreads) in bench_epoll_wait()
455 nthreads = cpu->nr - 1; in bench_epoll_wait()
457 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_wait()
464 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait()
472 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs); in bench_epoll_wait()
479 threads_starting = nthreads; in bench_epoll_wait()
518 qsort(worker, nthreads, sizeof(struct worker), cmpworker); in bench_epoll_wait()
520 for (i = 0; i < nthreads; i++) { in bench_epoll_wait()