changeset 6072:f737e406aa68

Core: guard against spinlock usage without atomic ops. The new thread pools code uses spinlocks.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 26 Mar 2015 14:15:06 +0300
parents 7bdd34cd2711
children 3ef00a71f564
files src/core/ngx_spinlock.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/ngx_spinlock.c
+++ b/src/core/ngx_spinlock.c
@@ -42,7 +42,7 @@ ngx_spinlock(ngx_atomic_t *lock, ngx_ato
 
 #else
 
-#if (NGX_OLD_THREADS)
+#if (NGX_THREADS)
 
 #error ngx_spinlock() or ngx_atomic_cmp_set() are not defined !