From: Mathieu Desnoyers Date: Tue, 3 Nov 2009 14:49:01 +0000 (-0500) Subject: urcu-defer: generate linker error if call_rcu() is used X-Git-Tag: v0.3.0~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1ed9b67726a52a0f4189cc1b58ca0141f7b1614f;p=userspace-rcu.git urcu-defer: generate linker error if call_rcu() is used Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-defer.h b/urcu-defer.h index 5f74987..00f18ff 100644 --- a/urcu-defer.h +++ b/urcu-defer.h @@ -48,6 +48,14 @@ extern void defer_rcu(void (*fct)(void *p), void *p); +/* + * call_rcu will eventually be implemented with an API similar to the Linux + * kernel call_rcu(), which will allow its use within RCU read-side C.S. + * Generate an error if used for now. + */ + +#define call_rcu __error_call_rcu_not_implemented_please_use_defer_rcu + /* * Thread registration for reclamation. */