Mercurial > hg > nginx-vendor-0-5
comparison src/os/unix/ngx_sunpro_atomic_sparc64.h @ 300:cba14c1e2a4b NGINX_0_5_20
nginx 0.5.20
*) Feature: the "sendfile_max_chunk" directive.
*) Feature: the "$http_...", "$sent_http_...", and "$upstream_http_..."
variables may be changed using the "set" directive.
*) Bugfix: a segmentation fault might occur in worker process if the
SSI command 'if expr="$var = /"' was used.
*) Bugfix: trailing boundary of multipart range response was
transferred incorrectly.
Thanks to Evan Miller.
*) Bugfix: nginx did not work on Solaris/sparc64 if it was built by Sun
Studio.
Thanks to Andrei Nigmatulin.
*) Bugfix: the ngx_http_perl_module could not built by Solaris make.
Thanks to Andrei Nigmatulin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 07 May 2007 00:00:00 +0400 |
parents | 73e8476f9142 |
children |
comparison
equal
deleted
inserted
replaced
299:7d0d14dc5fd7 | 300:cba14c1e2a4b |
---|---|
22 | 22 |
23 static ngx_inline ngx_atomic_uint_t | 23 static ngx_inline ngx_atomic_uint_t |
24 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, | 24 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, |
25 ngx_atomic_uint_t set) | 25 ngx_atomic_uint_t set) |
26 { | 26 { |
27 NGX_CASA(set, old, lock); | 27 set = NGX_CASA(set, old, lock); |
28 | 28 |
29 return (set == old); | 29 return (set == old); |
30 } | 30 } |
31 | 31 |
32 | 32 |
39 | 39 |
40 for ( ;; ) { | 40 for ( ;; ) { |
41 | 41 |
42 res = old + add; | 42 res = old + add; |
43 | 43 |
44 NGX_CASA(res, old, value); | 44 res = NGX_CASA(res, old, value); |
45 | 45 |
46 if (res == old) { | 46 if (res == old) { |
47 return res; | 47 return res; |
48 } | 48 } |
49 | 49 |