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