X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu-qsbr.h;h=60f6171b451c38038cbce7b29620bb42b72bef3e;hb=7f0b004de33af36f16bf1aa39ca6b29ff68acc4f;hp=bb0523c904916062ae1ee4843c8ee5085dd8ee8f;hpb=882f335739b978d1c55be2faeed077f315afe5d7;p=userspace-rcu.git diff --git a/urcu-qsbr.h b/urcu-qsbr.h index bb0523c..60f6171 100644 --- a/urcu-qsbr.h +++ b/urcu-qsbr.h @@ -91,7 +91,7 @@ extern "C" { * library debugging & tracing features we could come up with. */ -#if (!defined(BUILD_QSBR_LIB) && defined(RCU_DEBUG)) +#if (!defined(BUILD_QSBR_LIB) && !defined(RCU_DEBUG)) static inline void rcu_read_lock(void) { @@ -108,6 +108,9 @@ extern void rcu_read_unlock(void); #endif /* !RCU_DEBUG */ +#define test_rcu_read_lock rcu_read_lock_qsbr +#define test_rcu_read_unlock rcu_read_unlock_qsbr + extern int rcu_read_ongoing(void); extern void rcu_quiescent_state(void); extern void rcu_thread_offline(void);