aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_atomic.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-12-19 08:15:11 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-12-19 08:15:11 +0000
commite89c4581f4706187052671a8a40dda4fe3e3c391 (patch)
tree3644c7b95ae7ed7b62d830c62e452b632ac9e89b /src/core/ngx_atomic.h
parente3466a4058ec3a6c7915f5239fac9f6bfbb6a29d (diff)
downloadnginx-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.h13
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_ */