X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu-bp.c;h=99fcb0cdffddc1cc6c4cc7c5c864eb6ac5921a9d;hb=5efd3cd26d5179746a97981155e3d8a0cdbfda95;hp=2ae3408c25fd42cc6788c6ec8664c91cf9868d87;hpb=9380711ae3803da72aa1c7cf9ade5c3f93757006;p=urcu.git diff --git a/urcu-bp.c b/urcu-bp.c index 2ae3408..99fcb0c 100644 --- a/urcu-bp.c +++ b/urcu-bp.c @@ -39,6 +39,7 @@ #include "urcu/wfqueue.h" #include "urcu/map/urcu-bp.h" #include "urcu/static/urcu-bp.h" +#include "urcu-pointer.h" /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */ #undef _LGPL_SOURCE @@ -420,5 +421,23 @@ void rcu_bp_after_fork_child(void) assert(!ret); } +void *rcu_set_pointer_sym_bp(void **p, void *v) +{ + cmm_wmb(); + return uatomic_set(p, v); +} + +void *rcu_xchg_pointer_sym_bp(void **p, void *v) +{ + cmm_wmb(); + return uatomic_xchg(p, v); +} + +void *rcu_cmpxchg_pointer_sym_bp(void **p, void *old, void *_new) +{ + cmm_wmb(); + return uatomic_cmpxchg(p, old, _new); +} + #include "urcu-call-rcu-impl.h" #include "urcu-defer-impl.h"