X-Git-Url: http://git.liburcu.org/?p=userspace-rcu.git;a=blobdiff_plain;f=urcu-qsbr.h;h=60f6171b451c38038cbce7b29620bb42b72bef3e;hp=a2f6575986bf7976811ae6db3150f81f457609c4;hb=refs%2Fheads%2Furcu%2Frcu-dereference-checker;hpb=541d828d3101283ccdb1e25fa5a885e1d1743c1a diff --git a/urcu-qsbr.h b/urcu-qsbr.h index a2f6575..60f6171 100644 --- a/urcu-qsbr.h +++ b/urcu-qsbr.h @@ -70,6 +70,7 @@ extern "C" { */ #define rcu_read_lock_qsbr _rcu_read_lock #define rcu_read_unlock_qsbr _rcu_read_unlock +#define rcu_read_ongoing_qsbr _rcu_read_ongoing #define rcu_quiescent_state_qsbr _rcu_quiescent_state #define rcu_thread_offline_qsbr _rcu_thread_offline @@ -90,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) { @@ -107,6 +108,10 @@ 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); extern void rcu_thread_online(void);