[nginx] Removed ngx_threaded and related code.

Ruslan Ermilov ru at nginx.com
Thu Apr 16 20:01:58 UTC 2015


details:   http://hg.nginx.org/nginx/rev/d588dda5ec31
branches:  
changeset: 6109:d588dda5ec31
user:      Ruslan Ermilov <ru at nginx.com>
date:      Thu Mar 26 14:15:13 2015 +0300
description:
Removed ngx_threaded and related code.

diffstat:

 src/core/ngx_regex.c             |  37 -------------------------------------
 src/os/win32/ngx_process_cycle.c |   1 -
 src/os/win32/ngx_process_cycle.h |   1 -
 3 files changed, 0 insertions(+), 39 deletions(-)

diffs (85 lines):

diff -r 55dc5f7eb921 -r d588dda5ec31 src/core/ngx_regex.c
--- a/src/core/ngx_regex.c	Thu Apr 16 20:09:11 2015 +0300
+++ b/src/core/ngx_regex.c	Thu Mar 26 14:15:13 2015 +0300
@@ -80,17 +80,6 @@ ngx_regex_init(void)
 static ngx_inline void
 ngx_regex_malloc_init(ngx_pool_t *pool)
 {
-#if (NGX_OLD_THREADS)
-    ngx_core_tls_t  *tls;
-
-    if (ngx_threaded) {
-        tls = ngx_thread_get_tls(ngx_core_tls_key);
-        tls->pool = pool;
-        return;
-    }
-
-#endif
-
     ngx_pcre_pool = pool;
 }
 
@@ -98,17 +87,6 @@ ngx_regex_malloc_init(ngx_pool_t *pool)
 static ngx_inline void
 ngx_regex_malloc_done(void)
 {
-#if (NGX_OLD_THREADS)
-    ngx_core_tls_t  *tls;
-
-    if (ngx_threaded) {
-        tls = ngx_thread_get_tls(ngx_core_tls_key);
-        tls->pool = NULL;
-        return;
-    }
-
-#endif
-
     ngx_pcre_pool = NULL;
 }
 
@@ -253,23 +231,8 @@ static void * ngx_libc_cdecl
 ngx_regex_malloc(size_t size)
 {
     ngx_pool_t      *pool;
-#if (NGX_OLD_THREADS)
-    ngx_core_tls_t  *tls;
-
-    if (ngx_threaded) {
-        tls = ngx_thread_get_tls(ngx_core_tls_key);
-        pool = tls->pool;
-
-    } else {
-        pool = ngx_pcre_pool;
-    }
-
-#else
-
     pool = ngx_pcre_pool;
 
-#endif
-
     if (pool) {
         return ngx_palloc(pool, size);
     }
diff -r 55dc5f7eb921 -r d588dda5ec31 src/os/win32/ngx_process_cycle.c
--- a/src/os/win32/ngx_process_cycle.c	Thu Apr 16 20:09:11 2015 +0300
+++ b/src/os/win32/ngx_process_cycle.c	Thu Mar 26 14:15:13 2015 +0300
@@ -31,7 +31,6 @@ static ngx_thread_value_t __stdcall ngx_
 
 ngx_uint_t     ngx_process;
 ngx_pid_t      ngx_pid;
-ngx_uint_t     ngx_threaded;
 
 ngx_uint_t     ngx_inherited;
 ngx_pid_t      ngx_new_binary;
diff -r 55dc5f7eb921 -r d588dda5ec31 src/os/win32/ngx_process_cycle.h
--- a/src/os/win32/ngx_process_cycle.h	Thu Apr 16 20:09:11 2015 +0300
+++ b/src/os/win32/ngx_process_cycle.h	Thu Mar 26 14:15:13 2015 +0300
@@ -26,7 +26,6 @@ void ngx_close_handle(HANDLE h);
 
 extern ngx_uint_t      ngx_process;
 extern ngx_pid_t       ngx_pid;
-extern ngx_uint_t      ngx_threaded;
 extern ngx_uint_t      ngx_exiting;
 
 extern sig_atomic_t    ngx_quit;



More information about the nginx-devel mailing list