From 92b752ee39652e7df5995ae7c7acc40ec1c9b9a5 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 16 May 2009 17:27:06 -0400 Subject: [PATCH] Document thread registration in urcu.h Signed-off-by: Mathieu Desnoyers --- urcu.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/urcu.h b/urcu.h index b46033f..af7d75c 100644 --- a/urcu.h +++ b/urcu.h @@ -34,6 +34,14 @@ #include #include +/* + * Important ! + * + * Each thread containing read-side critical sections must be registered + * with rcu_register_thread() before calling rcu_read_lock(). + * rcu_unregister_thread() should be called before the thread exits. + */ + #ifdef _LGPL_SOURCE #include -- 2.34.1