X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-qsbr.h;h=b4a28a78a6a84490611f1a12277197f4a02092d6;hp=a2f6575986bf7976811ae6db3150f81f457609c4;hb=d47b05cb05b91bb9679d127c51bc4beac12b899d;hpb=f8fc437722856fefd5d415405d5ce8d79e8b6e96 diff --git a/urcu-qsbr.h b/urcu-qsbr.h index a2f6575..b4a28a7 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,7 @@ extern void rcu_read_unlock(void); #endif /* !RCU_DEBUG */ +extern int rcu_read_ongoing(void); extern void rcu_quiescent_state(void); extern void rcu_thread_offline(void); extern void rcu_thread_online(void);