X-Git-Url: http://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fstatic%2Furcu-qsbr.h;fp=urcu%2Fstatic%2Furcu-qsbr.h;h=4092d6bc4f67ffe34c5b190b3f2923504dc25039;hp=1ef830aba1833fa888ebdfa3ee4daa1034cbdf8c;hb=2bae154a80e64dbfc4c7701049f223d869cab695;hpb=8a325ad789d5a2c5e079dd210c2c6c40a1703195 diff --git a/urcu/static/urcu-qsbr.h b/urcu/static/urcu-qsbr.h index 1ef830a..4092d6b 100644 --- a/urcu/static/urcu-qsbr.h +++ b/urcu/static/urcu-qsbr.h @@ -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(); }