X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu.c;h=53c7f37677f762280b2a6337a6820bdf22c55faf;hp=9fde6238f695b06db846866a704f9ed595bd6d0c;hb=6e32665beaad7fef48e9ab3c8c4cda2e9c232dde;hpb=f4a486ac095bd844d0c18995737d589b8f085b69 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(); }