Mercurial > hg > nginx-ranges
comparison src/os/unix/ngx_atomic.h @ 160:73e8476f9142 NGINX_0_3_27
nginx 0.3.27
*) Change: the "variables_hash_max_size" and
"variables_hash_bucket_size" directives.
*) Feature: the $body_bytes_sent variable can be used not only in the
"log_format" directive.
*) Feature: the $ssl_protocol and $ssl_cipher variables.
*) Feature: the cache line size detection for widespread CPUs at start
time.
*) Feature: now the "accept_mutex" directive is supported using
fcntl(2) on platforms different from i386, amd64, sparc64, and ppc.
*) Feature: the "lock_file" directive and the --with-lock-path=PATH
autoconfiguration directive.
*) Bugfix: if the HTTPS protocol was used in the "proxy_pass" directive
then the requests with the body was not transferred.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 08 Feb 2006 00:00:00 +0300 |
parents | e85dca77c46a |
children | 6be073125f2e |
comparison
equal
deleted
inserted
replaced
159:25c27e983933 | 160:73e8476f9142 |
---|---|
32 ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add); | 32 ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add); |
33 | 33 |
34 /* the code in src/os/unix/ngx_sunpro_x86.il */ | 34 /* the code in src/os/unix/ngx_sunpro_x86.il */ |
35 | 35 |
36 #define ngx_memory_barrier() __asm (".volatile"); __asm (".nonvolatile") | 36 #define ngx_memory_barrier() __asm (".volatile"); __asm (".nonvolatile") |
37 #define ngx_cpu_pause() __asm ("pause") | |
37 | 38 |
38 | 39 |
39 #else /* ( __GNUC__ || __INTEL_COMPILER ) */ | 40 #else /* ( __GNUC__ || __INTEL_COMPILER ) */ |
40 | 41 |
41 #define NGX_HAVE_ATOMIC_OPS 1 | 42 #define NGX_HAVE_ATOMIC_OPS 1 |
65 ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add); | 66 ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add); |
66 | 67 |
67 /* the code in src/os/unix/ngx_sunpro_amd64.il */ | 68 /* the code in src/os/unix/ngx_sunpro_amd64.il */ |
68 | 69 |
69 #define ngx_memory_barrier() __asm (".volatile"); __asm (".nonvolatile") | 70 #define ngx_memory_barrier() __asm (".volatile"); __asm (".nonvolatile") |
71 #define ngx_cpu_pause() __asm ("pause") | |
70 | 72 |
71 | 73 |
72 #else /* ( __GNUC__ || __INTEL_COMPILER ) */ | 74 #else /* ( __GNUC__ || __INTEL_COMPILER ) */ |
73 | 75 |
74 #define NGX_HAVE_ATOMIC_OPS 1 | 76 #define NGX_HAVE_ATOMIC_OPS 1 |
173 | 175 |
174 return old; | 176 return old; |
175 } | 177 } |
176 | 178 |
177 #define ngx_memory_barrier() | 179 #define ngx_memory_barrier() |
180 #define ngx_cpu_pause() | |
178 | 181 |
179 #endif | 182 #endif |
180 | 183 |
181 void ngx_spinlock(ngx_atomic_t *lock, ngx_uint_t spin); | 184 void ngx_spinlock(ngx_atomic_t *lock, ngx_atomic_int_t value, ngx_uint_t spin); |
182 | 185 |
183 #define ngx_trylock(lock) (*(lock) == 0 && ngx_atomic_cmp_set(lock, 0, 1)) | 186 #define ngx_trylock(lock) (*(lock) == 0 && ngx_atomic_cmp_set(lock, 0, 1)) |
184 #define ngx_unlock(lock) *(lock) = 0 | 187 #define ngx_unlock(lock) *(lock) = 0 |
185 | 188 |
186 | 189 |