Lines Matching defs:nthreads
50 static unsigned int nthreads;
335 return (nthreads + 1) / 2;
465 if (nthreads == 0)
473 for (i = 0; i < nthreads; i++)
484 nthreads = 0;
501 nthreads = ARRAY_SIZE(default_threads);
504 nthreads = atoi(val);
505 if (nthreads == 0)
506 nthreads = 1;
507 if (nthreads > MAX_THREADPOOL_SIZE)
508 nthreads = MAX_THREADPOOL_SIZE;
511 if (nthreads > ARRAY_SIZE(default_threads)) {
512 threads = uv__malloc(nthreads * sizeof(threads[0]));
514 nthreads = ARRAY_SIZE(default_threads);
535 for (i = 0; i < nthreads; i++)
539 for (i = 0; i < nthreads; i++)