add rcu_cmpxchg_pointer
[urcu.git] / urcu.h
diff --git a/urcu.h b/urcu.h
index af7d75cb7bc9e389ba9896a9207695d4feea9540..5d92aa7232d4d0b53d262115fefc470d14286af0 100644 (file)
--- a/urcu.h
+++ b/urcu.h
@@ -75,6 +75,10 @@ extern void *rcu_assign_pointer_sym(void **p, void *v);
 #define rcu_assign_pointer(p, v)                       \
        rcu_assign_pointer_sym((void **)(p), (v))
 
+extern void *rcu_cmpxchg_pointer_sym(void **p, void *old, void *_new);
+#define rcu_cmpxchg_pointer(p, old, _new)              \
+       rcu_cmpxchg_pointer_sym((void **)(p), (old), (_new))
+
 extern void *rcu_xchg_pointer_sym(void **p, void *v);
 #define rcu_xchg_pointer(p, v)                         \
        rcu_xchg_pointer_sym((void **)(p), (v))
This page took 0.040147 seconds and 4 git commands to generate.