summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2015-03-26 14:15:06 +0300
committerRuslan Ermilov <ru@nginx.com>2015-03-26 14:15:06 +0300
commitedb0c6ba64453b6827096debff056a14158e2d7e (patch)
tree88a4fc414560c8046cc7b51ce3457bcb34a41559
parent38a97edf3abcd988e6eb731ec3968949960c1be9 (diff)
downloadnginx-edb0c6ba64453b6827096debff056a14158e2d7e.tar.gz
Core: guard against spinlock usage without atomic ops.
The new thread pools code uses spinlocks.
-rw-r--r--src/core/ngx_spinlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_spinlock.c b/src/core/ngx_spinlock.c
index 33477e2ee..9c93afaf1 100644
--- a/src/core/ngx_spinlock.c
+++ b/src/core/ngx_spinlock.c
@@ -42,7 +42,7 @@ ngx_spinlock(ngx_atomic_t *lock, ngx_atomic_int_t value, ngx_uint_t spin)
#else
-#if (NGX_OLD_THREADS)
+#if (NGX_THREADS)
#error ngx_spinlock() or ngx_atomic_cmp_set() are not defined !