]> git.kaiwu.me - nginx.git/commitdiff
Removed ngx_threaded and related code.
authorRuslan Ermilov <ru@nginx.com>
Thu, 26 Mar 2015 11:15:13 +0000 (14:15 +0300)
committerRuslan Ermilov <ru@nginx.com>
Thu, 26 Mar 2015 11:15:13 +0000 (14:15 +0300)
src/core/ngx_regex.c
src/os/win32/ngx_process_cycle.c
src/os/win32/ngx_process_cycle.h

index 77c5947decc1efe0d9f95bb56280b37eff618d05..416622dcc6b6a220f387ec90b95caec946a70a93 100644 (file)
@@ -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);
     }
index 7bfb281192e6ab66e7d4d192a0989927aab59ffb..343528237765b47bd28092ff066de1881b30e53a 100644 (file)
@@ -31,7 +31,6 @@ static ngx_thread_value_t __stdcall ngx_cache_loader_thread(void *data);
 
 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;
index a5c649d2e2cc01f51cd7cf54963b92cba61b5a18..f38c3888521cdaffce7899457f5dc0683a122a8c 100644 (file)
@@ -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;