From: Mathieu Desnoyers Date: Tue, 15 Sep 2009 18:13:09 +0000 (-0400) Subject: urcu qsbr: move thread online after add reader X-Git-Tag: v0.1~96 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5f373c844a426494807d41d6fd3482649f3dc400;p=userspace-rcu.git urcu qsbr: move thread online after add reader For a matter of symmetry with the unregister, make thread online only after it has been added as reader. Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-qsbr.c b/urcu-qsbr.c index 878a550..0576f41 100644 --- a/urcu-qsbr.c +++ b/urcu-qsbr.c @@ -251,10 +251,10 @@ 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(); + _rcu_thread_online(); } void rcu_unregister_thread(void)