X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu.c;h=d474fc8a3e8311c036f151698afdeaab7bde192a;hb=81d1f1f5a2d41dfd76defc700cdf68660d12f323;hp=39f5619773ba383b402fb1c536672af990129ed3;hpb=0a1d290b4432036a7c1bf4a1b251ec9086036a87;p=urcu.git diff --git a/urcu.c b/urcu.c index 39f5619..d474fc8 100644 --- a/urcu.c +++ b/urcu.c @@ -45,14 +45,14 @@ void urcu_init(void) } #endif -int init_done; +static int init_done; -pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER; /* * Global grace period counter. * Contains the current RCU_GP_CTR_BIT. - * Also has a RCU_GP_CTR_BIT of 1, to accelerate the reader fast path. + * Also has a RCU_GP_COUNT of 1, to accelerate the reader fast path. * Written to only by writer with mutex taken. Read by both writer and readers. */ long urcu_gp_ctr = RCU_GP_COUNT; @@ -81,7 +81,7 @@ static struct reader_registry *registry; static char __thread need_mb; static int num_readers, alloc_readers; -void internal_urcu_lock(void) +static void internal_urcu_lock(void) { int ret; @@ -108,7 +108,7 @@ void internal_urcu_lock(void) #endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */ } -void internal_urcu_unlock(void) +static void internal_urcu_unlock(void) { int ret;