diff options
author | Ruslan Ermilov <ru@nginx.com> | 2015-03-26 14:15:06 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2015-03-26 14:15:06 +0300 |
commit | edb0c6ba64453b6827096debff056a14158e2d7e (patch) | |
tree | 88a4fc414560c8046cc7b51ce3457bcb34a41559 | |
parent | 38a97edf3abcd988e6eb731ec3968949960c1be9 (diff) | |
download | nginx-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.c | 2 |
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 ! |