X-Git-Url: http://git.liburcu.org/?p=userspace-rcu.git;a=blobdiff_plain;f=urcu%2Fstatic%2Furcu.h;fp=urcu%2Fstatic%2Furcu.h;h=0fe32e88cea48241a463054f4e4411aee0428e3a;hp=b5fc09f93553578ae32f660b9c65a49a9ea3517f;hb=791151d0b8f0314496cf18c822c071b1dd5791ea;hpb=e4749953c309cb418cd583cdd80b6dd0b2c4161f diff --git a/urcu/static/urcu.h b/urcu/static/urcu.h index b5fc09f..0fe32e8 100644 --- a/urcu/static/urcu.h +++ b/urcu/static/urcu.h @@ -42,6 +42,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { @@ -219,6 +220,7 @@ static inline void _rcu_read_lock(void) { unsigned long tmp; + rcu_read_lock_debug(); cmm_barrier(); tmp = URCU_TLS(rcu_reader).ctr; _rcu_read_lock_update(tmp); @@ -255,6 +257,7 @@ static inline void _rcu_read_unlock(void) tmp = URCU_TLS(rcu_reader).ctr; _rcu_read_unlock_update_and_wakeup(tmp); cmm_barrier(); /* Ensure the compiler does not reorder us with mutex */ + rcu_read_unlock_debug(); } /*