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
debug_yield_write();
switch_qparity();
debug_yield_write();
- internal_urcu_lock();
+ internal_urcu_unlock();
debug_yield_write();
}