Mark defer_rcu() API as experimental.
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 23 Oct 2009 17:38:05 +0000 (13:38 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 23 Oct 2009 17:38:05 +0000 (13:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-defer.c
urcu-defer.h

index 3cc1a0c0b32b9132673b47a361ea116f9a8bf338..b7b3c51f2c0eed98562b1a0b8c726c5daf30a3cc 100644 (file)
@@ -232,15 +232,9 @@ end:
 /*
  * _defer_rcu - Queue a RCU callback.
  */
-void _defer_rcu_ratelimit(void (*fct)(void *p), void *p, int (*rl)(void *p))
+void _defer_rcu(void (*fct)(void *p), void *p)
 {
        unsigned long head, tail;
-       int sync;
-
-       /*
-        * Verify if we reached the rate limiter threshold.
-        */
-       sync = rl ? rl(p) : 0;
 
        /*
         * Head is only modified by ourself. Tail can be modified by reclamation
@@ -321,9 +315,9 @@ void *thr_defer(void *args)
  * library wrappers to be used by non-LGPL compatible source code.
  */
 
-void defer_rcu_ratelimit(void (*fct)(void *p), void *p, int (*rl)(void *p))
+void defer_rcu(void (*fct)(void *p), void *p)
 {
-       _defer_rcu_ratelimit(fct, p, rl);
+       _defer_rcu(fct, p);
 }
 
 static void start_defer_thread(void)
index 75b600568bc7a2df852cb246e1a300732c6989b8..5f7498756649c6474d2b884a9992a3e0501305ae 100644 (file)
@@ -33,6 +33,9 @@
 #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
  * primitive need to call synchronize_rcu() if the thread queue is full.
  */
 
-#define defer_rcu(fct, p)      defer_rcu_ratelimit(fct, p, NULL)
-
-extern void defer_rcu_ratelimit(void (*fct)(void *p), void *p,
-                               int (*rl)(void *p));
+extern void defer_rcu(void (*fct)(void *p), void *p);
 
 /*
  * Thread registration for reclamation.
This page took 0.025933 seconds and 4 git commands to generate.