From: Paolo Bonzini Date: Tue, 9 Aug 2011 20:43:21 +0000 (-0400) Subject: urcu-bp: move private definitions to .c file X-Git-Tag: v0.6.5~55 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b7b6a8f52c051dca78161908670e3f51b9b33080;p=userspace-rcu.git urcu-bp: move private definitions to .c file The reader does not and should not know about RCU_QS_ACTIVE_ATTEMPTS. Move the definition to urcu-bp.c. Signed-off-by: Paolo Bonzini Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-bp.c b/urcu-bp.c index 273acb8..7412b5b 100644 --- a/urcu-bp.c +++ b/urcu-bp.c @@ -78,6 +78,11 @@ void *mremap(void *old_address, size_t old_size, size_t new_size, int flags) #define RCU_SLEEP_DELAY 1000 #define ARENA_INIT_ALLOC 16 +/* + * Active attempts to check for reader Q.S. before calling sleep(). + */ +#define RCU_QS_ACTIVE_ATTEMPTS 100 + void __attribute__((destructor)) rcu_bp_exit(void); static pthread_mutex_t rcu_gp_lock = PTHREAD_MUTEX_INITIALIZER; diff --git a/urcu/static/urcu-bp.h b/urcu/static/urcu-bp.h index 64c32ea..832ba0f 100644 --- a/urcu/static/urcu-bp.h +++ b/urcu/static/urcu-bp.h @@ -51,11 +51,6 @@ extern "C" { #endif -/* - * Active attempts to check for reader Q.S. before calling sleep(). - */ -#define RCU_QS_ACTIVE_ATTEMPTS 100 - #ifdef DEBUG_RCU #define rcu_assert(args...) assert(args) #else