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	Tue Apr 07 01:32:08 2015 +0300
+++ b/src/core/ngx_spinlock.c	Thu Mar 26 14:15:06 2015 +0300
@@ -42,7 +42,7 @@
 
 #else
 
-#if (NGX_OLD_THREADS)
+#if (NGX_THREADS)
 
 #error ngx_spinlock() or ngx_atomic_cmp_set() are not defined !