add rcu_cmpxchg_pointer
[urcu.git] / urcu-qsbr.c
index f681c05bf0c05d96860e06cbb8771b11c9e3e829..5c6eaa014721267da7de5f85fff22835d41a80b2 100644 (file)
@@ -255,6 +255,12 @@ void *rcu_assign_pointer_sym(void **p, void *v)
        return STORE_SHARED(p, v);
 }
 
+void *rcu_cmpxchg_pointer_sym(void **p, void *old, void *_new)
+{
+       wmb();
+       return cmpxchg(p, old, _new);
+}
+
 void *rcu_xchg_pointer_sym(void **p, void *v)
 {
        wmb();
This page took 0.029441 seconds and 4 git commands to generate.