Klaus Demo nginx / dc566e4
fix atomic operations on sparc64 built by SunPro C Igor Sysoev 15 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2323 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old,
2424 ngx_atomic_uint_t set)
2525 {
26 NGX_CASA(set, old, lock);
26 set = NGX_CASA(set, old, lock);
2727
2828 return (set == old);
2929 }
4040
4141 res = old + add;
4242
43 NGX_CASA(res, old, value);
43 res = NGX_CASA(res, old, value);
4444
4545 if (res == old) {
4646 return res;