X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-pointer-static.h;h=c8ac7f0c0861a2d80e20e935dddf99303693fa75;hp=983d0d5bf429248be1905cfcce8d1e81a9dcaf9d;hb=5481ddb381061bda64aebc039900d21cac6a6caf;hpb=21c0a9849be7342dbe4ea717cc1785bd133d5367 diff --git a/urcu-pointer-static.h b/urcu-pointer-static.h index 983d0d5..c8ac7f0 100644 --- a/urcu-pointer-static.h +++ b/urcu-pointer-static.h @@ -63,7 +63,7 @@ extern "C" { #define _rcu_dereference(p) ({ \ typeof(p) _________p1 = LOAD_SHARED(p); \ - smp_read_barrier_depends(); \ + cmm_smp_read_barrier_depends(); \ (_________p1); \ }) @@ -81,7 +81,7 @@ extern "C" { typeof(*p) _________pnew = (_new); \ if (!__builtin_constant_p(_new) || \ ((_new) != NULL)) \ - wmb(); \ + cmm_wmb(); \ uatomic_cmpxchg(p, _________pold, _________pnew); \ }) @@ -96,7 +96,7 @@ extern "C" { typeof(*p) _________pv = (v); \ if (!__builtin_constant_p(v) || \ ((v) != NULL)) \ - wmb(); \ + cmm_wmb(); \ uatomic_xchg(p, _________pv); \ }) @@ -106,7 +106,7 @@ extern "C" { typeof(*p) _________pv = (v); \ if (!__builtin_constant_p(v) || \ ((v) != NULL)) \ - wmb(); \ + cmm_wmb(); \ uatomic_set(p, _________pv); \ })