From: Mathieu Desnoyers Date: Wed, 23 Sep 2009 23:18:06 +0000 (-0400) Subject: urcu: Move urcu_init within ifdef X-Git-Tag: v0.1~39 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=834a45ba9dc8fcb5c6c51e81674bd2db3bdc2df0;p=userspace-rcu.git urcu: Move urcu_init within ifdef Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu.c b/urcu.c index a8f85c6..32f7488 100644 --- a/urcu.c +++ b/urcu.c @@ -37,6 +37,8 @@ #include "urcu.h" #ifndef URCU_MB +static int init_done; + void __attribute__((constructor)) urcu_init(void); void __attribute__((destructor)) urcu_exit(void); #else @@ -45,8 +47,6 @@ void urcu_init(void) } #endif -static int init_done; - static pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER; /*