X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu-bp.c;h=b07a1bbed912a5998c1089a2237825d2801f7032;hb=852a17ad88c691a96a67754bce91826b33877812;hp=860421a9713e49050f167f1f9af2ce28085fe88d;hpb=d73fb81f74a79aa1e4987d16179f8489b955c812;p=urcu.git diff --git a/urcu-bp.c b/urcu-bp.c index 860421a..b07a1bb 100644 --- a/urcu-bp.c +++ b/urcu-bp.c @@ -105,8 +105,8 @@ void __attribute__((destructor)) rcu_bp_exit(void); static pthread_mutex_t rcu_gp_lock = PTHREAD_MUTEX_INITIALIZER; #ifdef DEBUG_YIELD -unsigned int yield_active; -DEFINE_URCU_TLS(unsigned int, rand_yield); +unsigned int rcu_yield_active; +DEFINE_URCU_TLS(unsigned int, rcu_rand_yield); #endif /* @@ -164,7 +164,7 @@ static void mutex_unlock(pthread_mutex_t *mutex) urcu_die(ret); } -void update_counter_and_wait(void) +static void update_counter_and_wait(void) { CDS_LIST_HEAD(qsreaders); int wait_loops = 0;