diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-12-19 08:15:11 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-12-19 08:15:11 +0000 |
commit | e89c4581f4706187052671a8a40dda4fe3e3c391 (patch) | |
tree | 3644c7b95ae7ed7b62d830c62e452b632ac9e89b /src/core/ngx_atomic.h | |
parent | e3466a4058ec3a6c7915f5239fac9f6bfbb6a29d (diff) | |
download | nginx-e89c4581f4706187052671a8a40dda4fe3e3c391.tar.gz nginx-e89c4581f4706187052671a8a40dda4fe3e3c391.zip |
nginx-0.0.1-2003-12-19-11:15:11 import
Diffstat (limited to 'src/core/ngx_atomic.h')
-rw-r--r-- | src/core/ngx_atomic.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/ngx_atomic.h b/src/core/ngx_atomic.h new file mode 100644 index 000000000..b24a997c4 --- /dev/null +++ b/src/core/ngx_atomic.h @@ -0,0 +1,13 @@ +#ifndef _NGX_ATOMIC_H_INCLUDED_ +#define _NGX_ATOMIC_H_INCLUDED_ + + +#include <ngx_config.h> +#include <ngx_core.h> + + +#define ngx_atomic_inc(x) x++; +#define ngx_atomic_dec(x) x--; + + +#endif /* _NGX_ATOMIC_H_INCLUDED_ */ |