diff options
author | Ruslan Ermilov <ru@nginx.com> | 2015-03-26 14:15:17 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2015-03-26 14:15:17 +0300 |
commit | 64c5df4b6251f4dfc7b3f72ef63b41ea59484d55 (patch) | |
tree | 295fcf90a768c592e2e8341178c19d303464ca89 /src/os/win32/ngx_thread.c | |
parent | 324e389e17102a63cb1d87884c06c6d2c51b5238 (diff) | |
download | nginx-64c5df4b6251f4dfc7b3f72ef63b41ea59484d55.tar.gz nginx-64c5df4b6251f4dfc7b3f72ef63b41ea59484d55.zip |
Removed "worker_threads" and "thread_stack_size" directives.
Diffstat (limited to 'src/os/win32/ngx_thread.c')
-rw-r--r-- | src/os/win32/ngx_thread.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/os/win32/ngx_thread.c b/src/os/win32/ngx_thread.c index 556ca6c9b..a13de2d09 100644 --- a/src/os/win32/ngx_thread.c +++ b/src/os/win32/ngx_thread.c @@ -9,12 +9,6 @@ #include <ngx_core.h> -ngx_int_t ngx_threads_n; - - -static size_t stack_size; - - ngx_err_t ngx_create_thread(ngx_tid_t *tid, ngx_thread_value_t (__stdcall *func)(void *arg), void *arg, ngx_log_t *log) @@ -22,7 +16,7 @@ ngx_create_thread(ngx_tid_t *tid, u_long id; ngx_err_t err; - *tid = CreateThread(NULL, stack_size, func, arg, 0, &id); + *tid = CreateThread(NULL, 0, func, arg, 0, &id); if (*tid != NULL) { ngx_log_error(NGX_LOG_NOTICE, log, 0, @@ -34,12 +28,3 @@ ngx_create_thread(ngx_tid_t *tid, ngx_log_error(NGX_LOG_ALERT, log, err, "CreateThread() failed"); return err; } - - -ngx_int_t -ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle) -{ - stack_size = size; - - return NGX_OK; -} |