Fix: urcu-qsbr: reversed logic on RCU_DEBUG
[urcu.git] / urcu-qsbr.h
index a2f6575986bf7976811ae6db3150f81f457609c4..b4a28a78a6a84490611f1a12277197f4a02092d6 100644 (file)
@@ -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);
This page took 0.024716 seconds and 4 git commands to generate.