diff src/os/win32/ngx_process_cycle.c @ 6111:537259db5af4

Removed "worker_threads" and "thread_stack_size" directives.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 26 Mar 2015 14:15:17 +0300
parents 16c51e80128c
children b4cc553aafeb
line wrap: on
line diff
--- a/src/os/win32/ngx_process_cycle.c
+++ b/src/os/win32/ngx_process_cycle.c
@@ -11,7 +11,6 @@
 #include <nginx.h>
 
 
-static void ngx_process_init(ngx_cycle_t *cycle);
 static void ngx_console_init(ngx_cycle_t *cycle);
 static int __stdcall ngx_console_handler(u_long type);
 static ngx_int_t ngx_create_signal_events(ngx_cycle_t *cycle);
@@ -69,8 +68,6 @@ ngx_master_process_cycle(ngx_cycle_t *cy
     ngx_uint_t  live;
     HANDLE      events[MAXIMUM_WAIT_OBJECTS];
 
-    ngx_process_init(cycle);
-
     ngx_sprintf((u_char *) ngx_master_process_event_name,
                 "ngx_master_%s%Z", ngx_unique);
 
@@ -251,22 +248,6 @@ ngx_master_process_cycle(ngx_cycle_t *cy
 
 
 static void
-ngx_process_init(ngx_cycle_t *cycle)
-{
-    ngx_core_conf_t  *ccf;
-
-    ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
-
-    if (ngx_init_threads(ngx_threads_n, ccf->thread_stack_size, cycle)
-        != NGX_OK)
-    {
-        /* fatal */
-        exit(2);
-    }
-}
-
-
-static void
 ngx_console_init(ngx_cycle_t *cycle)
 {
     ngx_core_conf_t  *ccf;
@@ -1016,8 +997,6 @@ ngx_single_process_cycle(ngx_cycle_t *cy
 {
     ngx_tid_t  tid;
 
-    ngx_process_init(cycle);
-
     ngx_console_init(cycle);
 
     if (ngx_create_signal_events(cycle) != NGX_OK) {