X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=urcu.c;h=53c7f37677f762280b2a6337a6820bdf22c55faf;hb=6e8b8429a09800f5a50f0410f5ec4cd95b46974b;hp=9fde6238f695b06db846866a704f9ed595bd6d0c;hpb=f4a486ac095bd844d0c18995737d589b8f085b69;p=urcu.git diff --git a/urcu.c b/urcu.c index 9fde623..53c7f37 100644 --- a/urcu.c +++ b/urcu.c @@ -20,9 +20,9 @@ pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER; /* Global grace period counter */ -int urcu_gp_ctr; +long urcu_gp_ctr; -int __thread urcu_active_readers; +long __thread urcu_active_readers; /* Thread IDs of registered readers */ #define INIT_NUM_THREADS 4 @@ -147,7 +147,7 @@ void synchronize_rcu(void) debug_yield_write(); switch_qparity(); debug_yield_write(); - internal_urcu_lock(); + internal_urcu_unlock(); debug_yield_write(); }