Lines Matching defs:nthreads
66 * TM[nthreads] per-thread mutex array
90 u_int nthreads = 20; /* -t: Threads. */
93 u_int nthreads = 4; /* -t: Threads. */
96 u_int nthreads = 1; /* -t: Threads. */
158 if ((nthreads = (u_int)atoi(optarg)) == 0)
159 nthreads = 1;
161 if (nthreads != 1) {
195 if (nprocs == 1 && nthreads == 1) {
202 len = sizeof(TM) * (1 + nthreads * nprocs + maxlocks);
248 progname, nprocs, nthreads, nlocks, maxlocks);
277 id += nthreads;
317 if (wakeup_start(nthreads) != 0)
361 * Spawn off threads. We have nthreads all locking and going to
365 (os_thread_t *)calloc(sizeof(os_thread_t), nthreads)) == NULL) {
369 for (i = 0; i < nthreads; i++)
390 for (i = 0; i < nthreads; i++) {
601 if (check_id == nthreads * nprocs)
665 1 + nthreads * nprocs + maxlocks)) != 0) {
676 if (nthreads != 1)
721 nthreads * nprocs);
722 for (i = 0; i < nthreads * nprocs; ++i) {
782 for (i = 0; i < nthreads * nprocs; ++i) {
890 addr = (u_int8_t *)addr + sizeof(TM) * (nthreads * nprocs);
995 snprintf(tbuf, sizeof(tbuf), "%d", nthreads);