aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_atomic.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2005-10-27 15:46:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2005-10-27 15:46:13 +0000
commit697d1aea0c7b1525beed2911f9f32426280df8f4 (patch)
tree3c59875442d9a8114785a04003fcc3b7b059dc55 /src/os/unix/ngx_atomic.h
parent968b2a868ba7950b7c11c81905eeb5ed87b889f2 (diff)
downloadnginx-release-0.3.7.tar.gz
nginx-release-0.3.7.zip
nginx-0.3.7-RELEASE importrelease-0.3.7
*) Feature: the "access_log" supports the "buffer=" parameter. *) Bugfix: nginx could not be built on platforms different from i386, amd64, sparc, and ppc; the bug had appeared in 0.3.2.
Diffstat (limited to 'src/os/unix/ngx_atomic.h')
-rw-r--r--src/os/unix/ngx_atomic.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os/unix/ngx_atomic.h b/src/os/unix/ngx_atomic.h
index 3dfce74c4..50d6354d5 100644
--- a/src/os/unix/ngx_atomic.h
+++ b/src/os/unix/ngx_atomic.h
@@ -154,7 +154,7 @@ static ngx_inline ngx_atomic_uint_t
ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old,
ngx_atomic_uint_t set)
{
- if (*lock == old {
+ if (*lock == old) {
*lock = set;
return 1;
}
@@ -174,8 +174,9 @@ ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add)
return old;
}
-#endif
+#define ngx_memory_barrier()
+#endif
void ngx_spinlock(ngx_atomic_t *lock, ngx_uint_t spin);