Mercurial > hg > nginx-quic
diff src/os/win32/ngx_thread.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 |
line wrap: on
line diff
--- 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; -}