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