Fix RCU_GP_CTR_BIT
[urcu.git] / urcu.c
diff --git a/urcu.c b/urcu.c
index 9fde6238f695b06db846866a704f9ed595bd6d0c..53c7f37677f762280b2a6337a6820bdf22c55faf 100644 (file)
--- 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();
 }
 
This page took 0.022678 seconds and 4 git commands to generate.