Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 4 of 4) sorted by relevance

/libuv/test/
H A Dbenchmark-async.c35 unsigned int nthreads; member
75 static int test_async(int nthreads) { in test_async() argument
82 threads = calloc(nthreads, sizeof(threads[0])); in test_async()
85 for (i = 0; i < nthreads; i++) { in test_async()
87 ctx->nthreads = nthreads; in test_async()
100 for (i = 0; i < nthreads; i++) in test_async()
105 for (i = 0; i < nthreads; i++) { in test_async()
114 nthreads, in test_async()
H A Dbenchmark-async-pummel.c64 static int test_async_pummel(int nthreads) { in test_async_pummel() argument
71 tids = calloc(nthreads, sizeof(tids[0])); in test_async_pummel()
77 for (i = 0; i < nthreads; i++) in test_async_pummel()
87 for (i = 0; i < nthreads; i++) in test_async_pummel()
91 nthreads, in test_async_pummel()
/libuv/src/
H A Dthreadpool.c37 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()
202 nthreads = atoi(val); in init_threads()
203 if (nthreads == 0) in init_threads()
204 nthreads = 1; in init_threads()
206 nthreads = MAX_THREADPOOL_SIZE; in init_threads()
233 for (i = 0; i < nthreads; i++) in init_threads()
[all …]
/libuv/
H A DChangeLog2271 * unix,win: limit concurrent DNS calls to nthreads/2 (Anna Henningsen)

Completed in 30 milliseconds