From 3614f13cba39ebc3b12e2656c75e1b41e4d76873 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 23 Oct 2009 13:38:05 -0400 Subject: [PATCH] Mark defer_rcu() API as experimental. Signed-off-by: Mathieu Desnoyers --- urcu-defer.c | 12 +++--------- urcu-defer.h | 8 ++++---- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/urcu-defer.c b/urcu-defer.c index 3cc1a0c..b7b3c51 100644 --- a/urcu-defer.c +++ b/urcu-defer.c @@ -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) diff --git a/urcu-defer.h b/urcu-defer.h index 75b6005..5f74987 100644 --- a/urcu-defer.h +++ b/urcu-defer.h @@ -33,6 +33,9 @@ #include /* + * Note: the defer_rcu() API is currently EXPERIMENTAL. It may change in the + * future. + * * Important ! * * Each thread queuing memory reclamation must be registered with @@ -43,10 +46,7 @@ * 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. -- 2.34.1