Lines Matching defs:nthreads
37 static unsigned int nthreads;
46 return (nthreads + 1) / 2;
170 if (nthreads == 0)
178 for (i = 0; i < nthreads; i++)
189 nthreads = 0;
198 nthreads = ARRAY_SIZE(default_threads);
201 nthreads = atoi(val);
202 if (nthreads == 0)
203 nthreads = 1;
204 if (nthreads > MAX_THREADPOOL_SIZE)
205 nthreads = MAX_THREADPOOL_SIZE;
208 if (nthreads > ARRAY_SIZE(default_threads)) {
209 threads = uv__malloc(nthreads * sizeof(threads[0]));
211 nthreads = ARRAY_SIZE(default_threads);
229 for (i = 0; i < nthreads; i++)
233 for (i = 0; i < nthreads; i++)