X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-pointer.c;h=f5c98118499d5706b1b13458a83f6bb4a044adfb;hp=da8b1ea7e76d0c702af5adb37f32361597525022;hb=eaf2c3f4b9041d2a6a85d7f9e56f6014603367d4;hpb=2ff1db4a7825af40f327413305de6f9955af0e35 diff --git a/urcu-pointer.c b/urcu-pointer.c index da8b1ea..f5c9811 100644 --- a/urcu-pointer.c +++ b/urcu-pointer.c @@ -4,7 +4,7 @@ * * library wrappers to be used by non-LGPL compatible source code. * - * Copyright (c) 2009 Mathieu Desnoyers + * Copyright (c) 2009 Mathieu Desnoyers * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. * * This library is free software; you can redistribute it and/or @@ -24,6 +24,8 @@ * IBM's contributions to this file may be relicensed under LGPLv2 or later. */ +#include + #include "urcu-pointer-static.h" /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */ #include "urcu-pointer.h" @@ -38,7 +40,7 @@ void *rcu_dereference_sym(void *p) void *rcu_set_pointer_sym(void **p, void *v) { wmb(); - return STORE_SHARED(*p, v); + return uatomic_set(p, v); } void *rcu_xchg_pointer_sym(void **p, void *v)