From 5f373c844a426494807d41d6fd3482649f3dc400 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 15 Sep 2009 14:13:09 -0400 Subject: [PATCH] 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 --- urcu-qsbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1