Mercurial > hg > nginx-quic
comparison src/core/ngx_atomic.h @ 278:0ba4821f4460
nginx-0.0.2-2004-03-04-10:04:55 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 04 Mar 2004 07:04:55 +0000 |
parents | d4e65d74db9f |
children | ee394e997c77 |
comparison
equal
deleted
inserted
replaced
277:e91499541410 | 278:0ba4821f4460 |
---|---|
70 #else | 70 #else |
71 | 71 |
72 typedef volatile uint32_t ngx_atomic_t; | 72 typedef volatile uint32_t ngx_atomic_t; |
73 | 73 |
74 /* STUB */ | 74 /* STUB */ |
75 #define ngx_atomic_inc(x) x++; | 75 #define ngx_atomic_inc(x) (*(x))++; |
76 #define ngx_atomic_dec(x) x--; | 76 #define ngx_atomic_dec(x) (*(x))--; |
77 #define ngx_atomic_cmp_set(lock, old, set) 1; | 77 #define ngx_atomic_cmp_set(lock, old, set) 1; |
78 /**/ | 78 /**/ |
79 | 79 |
80 #endif | 80 #endif |
81 | 81 |