Lines Matching refs:nthreads
37 static unsigned int nthreads; variable
46 return (nthreads + 1) / 2; in slow_work_thread_threshold()
170 if (nthreads == 0) in uv__threadpool_cleanup()
178 for (i = 0; i < nthreads; i++) in uv__threadpool_cleanup()
189 nthreads = 0; in uv__threadpool_cleanup()
199 nthreads = ARRAY_SIZE(default_threads); in init_threads()
202 nthreads = atoi(val); in init_threads()
203 if (nthreads == 0) in init_threads()
204 nthreads = 1; in init_threads()
205 if (nthreads > MAX_THREADPOOL_SIZE) in init_threads()
206 nthreads = MAX_THREADPOOL_SIZE; in init_threads()
209 if (nthreads > ARRAY_SIZE(default_threads)) { in init_threads()
210 threads = uv__malloc(nthreads * sizeof(threads[0])); in init_threads()
212 nthreads = ARRAY_SIZE(default_threads); in init_threads()
233 for (i = 0; i < nthreads; i++) in init_threads()
237 for (i = 0; i < nthreads; i++) in init_threads()