projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add fixme to urcu-ht
[userspace-rcu.git]
/
urcu.h
diff --git
a/urcu.h
b/urcu.h
index b46033f29090582749b949f30e2a6d95e2723c79..e72b57416f730fb4775100e96ba2da86729846b6 100644
(file)
--- a/
urcu.h
+++ b/
urcu.h
@@
-34,6
+34,14
@@
#include <stdlib.h>
#include <pthread.h>
#include <stdlib.h>
#include <pthread.h>
+/*
+ * Important !
+ *
+ * Each thread containing read-side critical sections must be registered
+ * with rcu_register_thread() before calling rcu_read_lock().
+ * rcu_unregister_thread() should be called before the thread exits.
+ */
+
#ifdef _LGPL_SOURCE
#include <urcu-static.h>
#ifdef _LGPL_SOURCE
#include <urcu-static.h>
@@
-48,6
+56,7
@@
#define rcu_read_unlock _rcu_read_unlock
#define rcu_assign_pointer _rcu_assign_pointer
#define rcu_read_unlock _rcu_read_unlock
#define rcu_assign_pointer _rcu_assign_pointer
+#define rcu_cmpxchg_pointer _rcu_cmpxchg_pointer
#define rcu_xchg_pointer _rcu_xchg_pointer
#define rcu_publish_content _rcu_publish_content
#define rcu_xchg_pointer _rcu_xchg_pointer
#define rcu_publish_content _rcu_publish_content
@@
-67,6
+76,10
@@
extern void *rcu_assign_pointer_sym(void **p, void *v);
#define rcu_assign_pointer(p, v) \
rcu_assign_pointer_sym((void **)(p), (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))
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.023098 seconds
and
4
git commands to generate.