Add ACCESS_ONCE to _STORE_SHARED
[urcu.git] / urcu.h
diff --git a/urcu.h b/urcu.h
index 0ff0877ac4ac45d6966d674d100b3b47fb7ecbbd..b43b280e8b697a3c83d56af3425fda00dc87f7e7 100644 (file)
--- 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 <stdlib.h>
@@ -85,7 +87,7 @@
  */
 #define _STORE_SHARED(x, v) \
        do { \
-               (x) = (v); \
+               ACCESS_ONCE(x) = (v); \
        } while (0)
 
 /*
This page took 0.023076 seconds and 4 git commands to generate.