Detect unbalanced lock/unlock
[urcu.git] / urcu / static / urcu-qsbr.h
index 1ef830aba1833fa888ebdfa3ee4daa1034cbdf8c..4092d6bc4f67ffe34c5b190b3f2923504dc25039 100644 (file)
@@ -131,7 +131,8 @@ static inline enum rcu_state rcu_reader_state(unsigned long *ctr)
  * function meets the 10-line criterion for LGPL, allowing this function
  * to be invoked directly from non-LGPL code.
  */
-static inline void _rcu_read_lock(void)
+static inline __attribute__((always_inline))
+void _rcu_read_lock(void)
 {
        rcu_read_lock_debug();
        rcu_assert(URCU_TLS(rcu_reader).ctr);
@@ -144,7 +145,8 @@ static inline void _rcu_read_lock(void)
  * function meets the 10-line criterion for LGPL, allowing this function
  * to be invoked directly from non-LGPL code.
  */
-static inline void _rcu_read_unlock(void)
+static inline __attribute__((always_inline))
+void _rcu_read_unlock(void)
 {
        rcu_read_unlock_debug();
 }
This page took 0.023878 seconds and 4 git commands to generate.