diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-03-04 07:04:55 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-03-04 07:04:55 +0000 |
commit | a536298c7bd1f525db97facab814a2906214ee7f (patch) | |
tree | 201ef9d639e1ff100684bf0a6781f59602418e35 /src/core/ngx_atomic.h | |
parent | 5edf387f199efe5b67b2b81a00bc8404bea8365b (diff) | |
download | nginx-a536298c7bd1f525db97facab814a2906214ee7f.tar.gz nginx-a536298c7bd1f525db97facab814a2906214ee7f.zip |
nginx-0.0.2-2004-03-04-10:04:55 import
Diffstat (limited to 'src/core/ngx_atomic.h')
-rw-r--r-- | src/core/ngx_atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_atomic.h b/src/core/ngx_atomic.h index bf771e95c..17362aa32 100644 --- a/src/core/ngx_atomic.h +++ b/src/core/ngx_atomic.h @@ -72,8 +72,8 @@ static ngx_inline uint32_t ngx_atomic_cmp_set(ngx_atomic_t *lock, typedef volatile uint32_t ngx_atomic_t; /* STUB */ -#define ngx_atomic_inc(x) x++; -#define ngx_atomic_dec(x) x--; +#define ngx_atomic_inc(x) (*(x))++; +#define ngx_atomic_dec(x) (*(x))--; #define ngx_atomic_cmp_set(lock, old, set) 1; /**/ |