X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-pointer-static.h;fp=urcu-pointer-static.h;h=eb073afa18683c5a6d1a626397aef70a21678d2c;hp=c0533c9d3281af0f613e7490ce18e67594bf75e4;hb=bf9de1b724767a7b0d9f32385ed3ab8623aabb71;hpb=b46b23cb9949c585ddf8ccb691458c8c7c60c7ad diff --git a/urcu-pointer-static.h b/urcu-pointer-static.h index c0533c9..eb073af 100644 --- a/urcu-pointer-static.h +++ b/urcu-pointer-static.h @@ -78,10 +78,7 @@ if (!__builtin_constant_p(_new) || \ ((_new) != NULL)) \ wmb(); \ - (likely(URCU_CAS_AVAIL()) ? \ - (uatomic_cmpxchg(p, _________pold, _________pnew)) : \ - (compat_uatomic_cmpxchg(p, _________pold, \ - _________pnew))) \ + uatomic_cmpxchg(p, _________pold, _________pnew); \ }) /** @@ -106,7 +103,7 @@ if (!__builtin_constant_p(v) || \ ((v) != NULL)) \ wmb(); \ - STORE_SHARED(*(p), _________pv); \ + uatomic_set(p, _________pv); \ }) /**