[nginx] Core: guard against spinlock usage without atomic ops.
Ruslan Ermilov
ru at nginx.com
Tue Apr 7 11:26:36 UTC 2015
details: http://hg.nginx.org/nginx/rev/f737e406aa68
branches:
changeset: 6072:f737e406aa68
user: Ruslan Ermilov <ru at nginx.com>
date: Thu Mar 26 14:15:06 2015 +0300
description:
Core: guard against spinlock usage without atomic ops.
The new thread pools code uses spinlocks.
diffstat:
src/core/ngx_spinlock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 7bdd34cd2711 -r f737e406aa68 src/core/ngx_spinlock.c
--- 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 @@ 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 !
More information about the nginx-devel
mailing list