comparison src/core/ngx_spinlock.c @ 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 457ec43dd8d5
children
comparison
equal deleted inserted replaced
6071:7bdd34cd2711 6072:f737e406aa68
40 ngx_sched_yield(); 40 ngx_sched_yield();
41 } 41 }
42 42
43 #else 43 #else
44 44
45 #if (NGX_OLD_THREADS) 45 #if (NGX_THREADS)
46 46
47 #error ngx_spinlock() or ngx_atomic_cmp_set() are not defined ! 47 #error ngx_spinlock() or ngx_atomic_cmp_set() are not defined !
48 48
49 #endif 49 #endif
50 50