From: Ruslan Ermilov Date: Thu, 26 Mar 2015 11:15:06 +0000 (+0300) Subject: Core: guard against spinlock usage without atomic ops. X-Git-Tag: release-1.7.12~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=edb0c6ba64453b6827096debff056a14158e2d7e;p=nginx.git Core: guard against spinlock usage without atomic ops. The new thread pools code uses spinlocks. --- 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 !