Fix: memory leak in urcu-checker
[userspace-rcu.git] / urcu-qsbr.h
index a2f6575986bf7976811ae6db3150f81f457609c4..60f6171b451c38038cbce7b29620bb42b72bef3e 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,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);
This page took 0.023522 seconds and 4 git commands to generate.