From: Mathieu Desnoyers Date: Fri, 23 Oct 2009 17:38:05 +0000 (-0400) Subject: Mark defer_rcu() API as experimental. X-Git-Tag: v0.3.0~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3614f13cba39ebc3b12e2656c75e1b41e4d76873;p=urcu.git Mark defer_rcu() API as experimental. Signed-off-by: Mathieu Desnoyers --- 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.