add rcu_cmpxchg_pointer
[urcu.git] / urcu.c
diff --git a/urcu.c b/urcu.c
index d474fc8a3e8311c036f151698afdeaab7bde192a..a8f85c6f02199d4ecdfb20b1a0098cef213c138c 100644 (file)
--- a/urcu.c
+++ b/urcu.c
@@ -347,6 +347,12 @@ void *rcu_xchg_pointer_sym(void **p, void *v)
        return xchg(p, v);
 }
 
+void *rcu_cmpxchg_pointer_sym(void **p, void *old, void *_new)
+{
+       wmb();
+       return cmpxchg(p, old, _new);
+}
+
 void *rcu_publish_content_sym(void **p, void *v)
 {
        void *oldptr;
This page took 0.029912 seconds and 4 git commands to generate.