aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_process_cycle.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2015-03-04 18:26:25 +0300
committerRuslan Ermilov <ru@nginx.com>2015-03-04 18:26:25 +0300
commit83ba5ed2ecc1ca06971639e4e2c7325aaa8e5101 (patch)
tree7984305b05776fd3be9096797dd6c3793407f5c0 /src/os/unix/ngx_process_cycle.c
parentb89e3bc03448cb83cc339781a6037e6a73954c01 (diff)
downloadnginx-83ba5ed2ecc1ca06971639e4e2c7325aaa8e5101.tar.gz
nginx-83ba5ed2ecc1ca06971639e4e2c7325aaa8e5101.zip
Renamed NGX_THREADS to NGX_OLD_THREADS because of deprecation.
It's mostly dead code and the original idea of worker threads has been rejected.
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
-rw-r--r--src/os/unix/ngx_process_cycle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c
index 51cf72544..83d65dde6 100644
--- a/src/os/unix/ngx_process_cycle.c
+++ b/src/os/unix/ngx_process_cycle.c
@@ -23,7 +23,7 @@ static void ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data);
static void ngx_worker_process_init(ngx_cycle_t *cycle, ngx_int_t worker);
static void ngx_worker_process_exit(ngx_cycle_t *cycle);
static void ngx_channel_handler(ngx_event_t *ev);
-#if (NGX_THREADS)
+#if (NGX_OLD_THREADS)
static void ngx_wakeup_worker_threads(ngx_cycle_t *cycle);
static ngx_thread_value_t ngx_worker_thread_cycle(void *data);
#endif
@@ -56,7 +56,7 @@ ngx_uint_t ngx_noaccepting;
ngx_uint_t ngx_restart;
-#if (NGX_THREADS)
+#if (NGX_OLD_THREADS)
volatile ngx_thread_t ngx_threads[NGX_MAX_THREADS];
ngx_int_t ngx_threads_n;
#endif
@@ -747,7 +747,7 @@ ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data)
ngx_setproctitle("worker process");
-#if (NGX_THREADS)
+#if (NGX_OLD_THREADS)
{
ngx_int_t n;
ngx_err_t err;
@@ -1032,7 +1032,7 @@ ngx_worker_process_exit(ngx_cycle_t *cycle)
ngx_uint_t i;
ngx_connection_t *c;
-#if (NGX_THREADS)
+#if (NGX_OLD_THREADS)
ngx_terminate = 1;
ngx_wakeup_worker_threads(cycle);
@@ -1181,7 +1181,7 @@ ngx_channel_handler(ngx_event_t *ev)
}
-#if (NGX_THREADS)
+#if (NGX_OLD_THREADS)
static void
ngx_wakeup_worker_threads(ngx_cycle_t *cycle)