projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mark defer_rcu() API as experimental.
[urcu.git]
/
urcu-defer.h
diff --git
a/urcu-defer.h
b/urcu-defer.h
index ac2f53b1728c63c4359ab9cc3cc601a63b57cb53..5f7498756649c6474d2b884a9992a3e0501305ae 100644
(file)
--- a/
urcu-defer.h
+++ b/
urcu-defer.h
@@
-33,17
+33,20
@@
#include <pthread.h>
/*
#include <pthread.h>
/*
+ * Note: the defer_rcu() API is currently EXPERIMENTAL. It may change in the
+ * future.
+ *
* Important !
*
* Each thread queuing memory reclamation must be registered with
* rcu_defer_register_thread(). rcu_defer_unregister_thread() should be
* called before the thread exits.
* Important !
*
* Each thread queuing memory reclamation must be registered with
* rcu_defer_register_thread(). rcu_defer_unregister_thread() should be
* called before the thread exits.
+ *
+ * *NEVER* use defer_rcu() within a RCU read-side critical section, because this
+ * primitive need to call synchronize_rcu() if the thread queue is full.
*/
*/
-#define call_rcu rcu_defer_queue
-#define rcu_reclaim_queue(p) rcu_defer_queue(free, p)
-
-extern void rcu_defer_queue(void (*fct)(void *p), void *p);
+extern void defer_rcu(void (*fct)(void *p), void *p);
/*
* Thread registration for reclamation.
/*
* Thread registration for reclamation.
This page took
0.023115 seconds
and
4
git commands to generate.