X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=urcu.h;h=b43b280e8b697a3c83d56af3425fda00dc87f7e7;hb=ad7de003b45b3a7339b90208c321517c2dcbdc3e;hp=0ff0877ac4ac45d6966d674d100b3b47fb7ecbbd;hpb=2d6debff95ad695255d2ea9d590d1e418590b238;p=urcu.git diff --git a/urcu.h b/urcu.h index 0ff0877..b43b280 100644 --- a/urcu.h +++ b/urcu.h @@ -15,6 +15,8 @@ * and rcu_dereference primitives come from the Linux kernel. * * Distributed under GPLv2 + * + * IBM's contributions to this file may be relicensed under LGPLv2 or later. */ #include @@ -85,7 +87,7 @@ */ #define _STORE_SHARED(x, v) \ do { \ - (x) = (v); \ + ACCESS_ONCE(x) = (v); \ } while (0) /*