Lines Matching refs:threads_per_child

120 static int threads_per_child = 0;     /* Worker threads per child */
270 for (i = 0; i < threads_per_child; i++) {
355 *result = threads_per_child;
1061 rv = ap_queue_init(worker_queue, threads_per_child, pchild);
1069 threads_per_child);
1076 worker_sockets = apr_pcalloc(pchild, threads_per_child
1081 /* threads_per_child does not include the listener thread */
1082 for (i = 0; i < threads_per_child; i++) {
1115 if (start_thread_may_exit || threads_created == threads_per_child) {
1126 ap_my_pid, threads_created, threads_per_child);
1189 for (i = 0; i < threads_per_child; i++) {
1296 sizeof(apr_thread_t *) * threads_per_child);
1513 * that threads_per_child is always > 0 */
1526 for (j = 0; j < threads_per_child; j++) {
1580 else if (child_threads_active == threads_per_child) {
1625 if (active_thread_count >= ap_daemons_limit * threads_per_child) {
1734 for (i = 0; i < threads_per_child; i++)
1836 if (min_spare_threads < threads_per_child * num_buckets)
1837 min_spare_threads = threads_per_child * num_buckets;
1838 if (max_spare_threads < min_spare_threads + threads_per_child * num_buckets)
1839 max_spare_threads = min_spare_threads + threads_per_child * num_buckets;
2161 threads_per_child = DEFAULT_THREADS_PER_CHILD;
2162 max_workers = ap_daemons_limit * threads_per_child;
2267 if (threads_per_child > thread_limit) {
2271 "of", threads_per_child);
2282 threads_per_child, thread_limit);
2284 threads_per_child = thread_limit;
2286 else if (threads_per_child < 1) {
2290 "increasing to 1.", threads_per_child);
2294 threads_per_child);
2296 threads_per_child = 1;
2299 if (max_workers < threads_per_child) {
2307 threads_per_child, threads_per_child);
2314 max_workers, threads_per_child);
2316 max_workers = threads_per_child;
2319 ap_daemons_limit = max_workers / threads_per_child;
2321 if (max_workers % threads_per_child) {
2322 int tmp_max_workers = ap_daemons_limit * threads_per_child;
2330 "multiple %d,", threads_per_child,
2339 "multiple %d", max_workers, threads_per_child,
2352 server_limit, server_limit * threads_per_child);
2361 server_limit * threads_per_child);
2397 /* max_spare_threads < min_spare_threads + threads_per_child
2485 threads_per_child = atoi(arg);