From c92b27e217eba8d3cccfb24837e9843dbd323861 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 9 Aug 2011 16:43:21 -0400 Subject: [PATCH] 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 --- urcu-bp.c | 5 +++++ urcu/static/urcu-bp.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.34.1