X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-qsbr.c;h=0576f4142754e14840b839be35c71e72b200938a;hp=878a550b9291d21a464f5e4c1db9e58f1d741ea3;hb=5f373c844a426494807d41d6fd3482649f3dc400;hpb=332c334642672c5cf5e437f5ab2457ce6cddc21a 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)