Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 22 of 22) sorted by relevance

/unit/test/
H A Dtest_ruby_hooks.py47 threads = 2
52 threads=threads,
56 hooked = self._wait_cookie('thread_boot.*', processes * threads)
62 threads = 2
67 threads=threads,
75 hooked = self._wait_cookie('thread_shutdown.*', processes * threads)
81 threads = 1
86 threads=threads,
93 hooked = self._wait_cookie('thread_boot.*', threads)
H A Dtest_asgi_application.py383 self.load('threads', threads=2)
402 threads = set()
413 threads.add(resp['headers']['x-thread'])
417 assert len(socks) == len(threads), 'threads differs'
H A Dtest_perl_application.py274 threads = set()
285 threads.add(resp['headers']['X-Thread'])
291 assert len(socks) == len(threads), 'threads differs'
H A Dtest_ruby_application.py412 threads = set()
423 threads.add(resp['headers']['X-Thread'])
429 assert len(socks) == len(threads), 'threads differs'
H A Dtest_python_application.py799 self.load('threads', threads=4)
816 threads = set()
827 threads.add(resp['headers']['X-Thread'])
833 assert len(socks) == len(threads), 'threads differs'
H A Dtest_java_application.py1018 threads = set()
1029 threads.add(resp['headers']['X-Thread'])
1033 assert len(socks) == len(threads), 'threads differs'
/unit/src/
H A Dnxt_thread_pool.c82 (void) nxt_atomic_fetch_add(&tp->threads, 1); in nxt_thread_pool_init()
101 (void) nxt_atomic_fetch_add(&tp->threads, -1); in nxt_thread_pool_init()
170 nxt_atomic_uint_t waiting, threads; in nxt_thread_pool_wait() local
195 (void) nxt_atomic_fetch_add(&tp->threads, -1); in nxt_thread_pool_wait()
208 threads = tp->threads; in nxt_thread_pool_wait()
210 if (threads >= tp->max_threads) { in nxt_thread_pool_wait()
214 } while (!nxt_atomic_cmp_set(&tp->threads, threads, threads + 1)); in nxt_thread_pool_wait()
271 nxt_atomic_uint_t threads; in nxt_thread_pool_exit() local
284 threads = nxt_atomic_fetch_add(&tp->threads, -1); in nxt_thread_pool_exit()
286 nxt_debug(task, "thread pool threads: %A", threads); in nxt_thread_pool_exit()
[all …]
H A Dnxt_application.h55 uint32_t threads; member
69 uint32_t threads; member
76 uint32_t threads; member
86 uint32_t threads; member
H A Dnxt_thread_pool.h17 nxt_atomic_t threads; member
H A Dnxt_java.c621 if (c->threads <= 1) { in nxt_java_ready_handler()
625 for (i = 0; i < c->threads - 1; i++) { in nxt_java_ready_handler()
693 if (c->threads <= 1) { in nxt_java_init_threads()
718 sizeof(pthread_t) * (c->threads - 1)); in nxt_java_init_threads()
725 memset(nxt_java_threads, 0, sizeof(pthread_t) * (c->threads - 1)); in nxt_java_init_threads()
741 for (i = 0; i < c->threads - 1; i++) { in nxt_java_join_threads()
H A Dnxt_router.h43 uint32_t threads; member
H A Dnxt_main_process.c214 offsetof(nxt_common_app_conf_t, u.python.threads),
256 offsetof(nxt_common_app_conf_t, u.perl.threads),
276 offsetof(nxt_common_app_conf_t, u.ruby.threads),
310 offsetof(nxt_common_app_conf_t, u.java.threads),
H A Dnxt_router.c1298 offsetof(nxt_router_conf_t, threads),
1537 if (rtcf->threads == 0) { in nxt_router_conf_create()
1538 rtcf->threads = nxt_ncpu; in nxt_router_conf_create()
2983 nxt_uint_t n, threads; in nxt_router_engines_create() local
2987 threads = tmcf->router_conf->threads; in nxt_router_engines_create()
2989 tmcf->engines = nxt_array_create(tmcf->mem_pool, threads, in nxt_router_engines_create()
3008 if (n < threads) { in nxt_router_engines_create()
3026 while (n < threads) { in nxt_router_engines_create()
3240 nxt_uint_t i, threads; in nxt_router_threads_create() local
3244 threads = tmcf->router_conf->threads; in nxt_router_threads_create()
[all …]
H A Dnxt_conf_validation.c1821 int64_t threads; in nxt_conf_vldt_threads() local
1823 threads = nxt_conf_get_number(value); in nxt_conf_vldt_threads()
1825 if (threads < 1) { in nxt_conf_vldt_threads()
1830 if (threads > NXT_INT32_T_MAX) { in nxt_conf_vldt_threads()
/unit/src/test/
H A Dnxt_unit_app_test.c41 static pthread_t *threads; variable
71 err = pthread_join(threads[i], NULL); in main()
82 nxt_unit_free(ctx, threads); in main()
104 threads = nxt_unit_malloc(ctx, sizeof(pthread_t) * (thread_count - 1)); in ready_handler()
105 if (threads == NULL) { in ready_handler()
110 err = pthread_create(&threads[i], NULL, worker, ctx); in ready_handler()
/unit/src/python/
H A Dnxt_python.c152 if (c->threads > 1) { in nxt_python_start()
460 if (c->threads <= 1) { in nxt_python_init_threads()
485 * (c->threads - 1)); in nxt_python_init_threads()
492 memset(nxt_py_threads, 0, sizeof(nxt_py_thread_info_t) * (c->threads - 1)); in nxt_python_init_threads()
494 for (i = 0; i < c->threads - 1; i++) { in nxt_python_init_threads()
517 if (c->threads <= 1) { in nxt_python_ready_handler()
521 for (i = 0; i < c->threads - 1; i++) { in nxt_python_ready_handler()
596 for (i = 0; i < c->threads - 1; i++) { in nxt_python_join_threads()
616 for (i = 0; i < c->threads - 1; i++) { in nxt_python_join_threads()
H A Dnxt_python_wsgi.c506 c->threads > 1 ? Py_True : Py_False) in nxt_python_create_environ()
/unit/src/ruby/
H A Dnxt_ruby.c277 nxt_ruby_threads = c->threads; in nxt_ruby_start()
1298 if (c->threads <= 1) { in nxt_ruby_ready_handler()
1302 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_ready_handler()
1402 if (c->threads <= 1) { in nxt_ruby_init_threads()
1407 * (c->threads - 1)); in nxt_ruby_init_threads()
1414 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_init_threads()
1424 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_init_threads()
1450 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_join_threads()
1463 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_join_threads()
/unit/src/java/nginx/unit/websocket/
H A DAsyncChannelGroupUtil.java30 import org.apache.tomcat.util.threads.ThreadPoolExecutor;
/unit/
H A Dconfigure124 . auto/threads
H A DCHANGES466 *) Bugfix: threads in Python applications might not work correctly.
/unit/src/perl/
H A Dnxt_perl_psgi.c1272 if (c->threads <= 1) { in nxt_perl_psgi_ready_handler()
1276 for (i = 0; i < c->threads - 1; i++) { in nxt_perl_psgi_ready_handler()
1335 if (c->threads <= 1) { in nxt_perl_psgi_init_threads()
1360 * (c->threads - 1)); in nxt_perl_psgi_init_threads()
1366 * (c->threads - 1)); in nxt_perl_psgi_init_threads()
1368 for (i = 0; i < c->threads - 1; i++) { in nxt_perl_psgi_init_threads()
1391 for (i = 0; i < c->threads - 1; i++) { in nxt_perl_psgi_join_threads()
1405 for (i = 0; i < c->threads - 1; i++) { in nxt_perl_psgi_join_threads()