X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-pointer-static.h;h=eb073afa18683c5a6d1a626397aef70a21678d2c;hp=0a01f1ffc944550d3c66cdf9b8d5a53c2a5c8225;hb=bf9de1b724767a7b0d9f32385ed3ab8623aabb71;hpb=2b5554c9169ea1ef93dffacb7671a00f9e7de511 diff --git a/urcu-pointer-static.h b/urcu-pointer-static.h index 0a01f1f..eb073af 100644 --- a/urcu-pointer-static.h +++ b/urcu-pointer-static.h @@ -32,7 +32,7 @@ #include #include #include -#include +#include /** * _rcu_dereference - reads (copy) a RCU-protected pointer to a local variable @@ -103,7 +103,7 @@ if (!__builtin_constant_p(v) || \ ((v) != NULL)) \ wmb(); \ - STORE_SHARED(*(p), _________pv); \ + uatomic_set(p, _________pv); \ }) /**