comparison src/os/win32/ngx_atomic.h @ 493:975f62e77f02 release-0.1.21

nginx-0.1.21-RELEASE import *) 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.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 22 Feb 2005 14:40:13 +0000
parents a88a3e4e158f
children d7c90bb5ce83
comparison
equal deleted inserted replaced
492:a3fac9a5aa5b 493:975f62e77f02
12 #include <ngx_core.h> 12 #include <ngx_core.h>
13 13
14 14
15 #define NGX_HAVE_ATOMIC_OPS 1 15 #define NGX_HAVE_ATOMIC_OPS 1
16 16
17 typedef uint32_t ngx_atomic_int_t;
18 typedef volatile ngx_atomic_int_t ngx_atomic_t;
19 #define NGX_ATOMIC_T_LEN sizeof("-2147483648") - 1
20
17 21
18 #define ngx_atomic_inc(p) InterlockedIncrement((long *) p) 22 #define ngx_atomic_inc(p) InterlockedIncrement((long *) p)
23 #define ngx_atomic_dec(p) InterlockedDecrement((long *) p)
19 24
20 25
21 #if defined( __WATCOMC__ ) || defined( __BORLANDC__ ) || ( _MSC_VER >= 1300 ) 26 #if defined( __WATCOMC__ ) || defined( __BORLANDC__ ) || ( _MSC_VER >= 1300 )
22 27
23 /* the new SDK headers */ 28 /* the new SDK headers */