From 332c334642672c5cf5e437f5ab2457ce6cddc21a Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Tue, 15 Sep 2009 14:09:59 -0400 Subject: [PATCH] qsbr rcu: rc_register_thread also make the thread online. Else, all its RCU reader critical sections aren't safe until its first _rcu_quiescent_state() call. Signed-off-by: Pierre Habouzit Signed-off-by: Mathieu Desnoyers --- urcu-qsbr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/urcu-qsbr.c b/urcu-qsbr.c index 87c83d7..878a550 100644 --- a/urcu-qsbr.c +++ b/urcu-qsbr.c @@ -251,6 +251,7 @@ static void rcu_remove_reader(pthread_t id) void rcu_register_thread(void) { + _rcu_thread_online(); internal_urcu_lock(); rcu_add_reader(pthread_self()); internal_urcu_unlock(); -- 2.34.1