aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_atomic.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2005-02-22 14:40:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2005-02-22 14:40:13 +0000
commitd039a2e193c9172e4f415b9304222e81804a69d0 (patch)
tree4571d4da7950e9464e788a4d68dc5111167de52c /src/os/win32/ngx_atomic.h
parent174db74f2309e28c0e2b54e89b9e08afff187c7c (diff)
downloadnginx-d039a2e193c9172e4f415b9304222e81804a69d0.tar.gz
nginx-d039a2e193c9172e4f415b9304222e81804a69d0.zip
nginx-0.1.21-RELEASE importrelease-0.1.21
*) Bugfix: the ngx_http_stub_status_module showed incorrect statistics if "rtsig" method was used or if several worker process ran on SMP. *) Bugfix: nginx could not be built by the icc compiler on Linux or if the zlib-1.2.x library was building from sources. *) Bugfix: nginx could not be built on NetBSD 2.0.
Diffstat (limited to 'src/os/win32/ngx_atomic.h')
-rw-r--r--src/os/win32/ngx_atomic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/win32/ngx_atomic.h b/src/os/win32/ngx_atomic.h
index b4915d0a2..7022bfae8 100644
--- a/src/os/win32/ngx_atomic.h
+++ b/src/os/win32/ngx_atomic.h
@@ -14,8 +14,13 @@
#define NGX_HAVE_ATOMIC_OPS 1
+typedef uint32_t ngx_atomic_int_t;
+typedef volatile ngx_atomic_int_t ngx_atomic_t;
+#define NGX_ATOMIC_T_LEN sizeof("-2147483648") - 1
+
#define ngx_atomic_inc(p) InterlockedIncrement((long *) p)
+#define ngx_atomic_dec(p) InterlockedDecrement((long *) p)
#if defined( __WATCOMC__ ) || defined( __BORLANDC__ ) || ( _MSC_VER >= 1300 )