From: Pierre Habouzit Date: Tue, 15 Sep 2009 18:09:59 +0000 (-0400) Subject: qsbr rcu: rc_register_thread also make the thread online. X-Git-Tag: v0.1~97 X-Git-Url: https://git.lttng.org/?p=urcu.git;a=commitdiff_plain;h=332c334642672c5cf5e437f5ab2457ce6cddc21a 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 --- 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();