X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-qsbr.h;h=a2f6575986bf7976811ae6db3150f81f457609c4;hp=116fd77146e5b8b04aa780f195ca5c11a34590f5;hb=541d828d3101283ccdb1e25fa5a885e1d1743c1a;hpb=02be55611d3b1c7bf4fdfcb3a9c98f621882d417 diff --git a/urcu-qsbr.h b/urcu-qsbr.h index 116fd77..a2f6575 100644 --- a/urcu-qsbr.h +++ b/urcu-qsbr.h @@ -32,7 +32,8 @@ #include /* - * See urcu-pointer.h and urcu-pointer-static.h for pointer publication headers. + * See urcu-pointer.h and urcu/static/urcu-pointer.h for pointer + * publication headers. */ #include @@ -40,6 +41,8 @@ extern "C" { #endif +#include + /* * Important ! * @@ -50,7 +53,7 @@ extern "C" { #ifdef _LGPL_SOURCE -#include +#include /* * Mappings for static use of the userspace RCU library. @@ -62,15 +65,15 @@ extern "C" { * rcu_read_unlock() * * Mark the beginning and end of a read-side critical section. - * DON'T FORGET TO USE rcu_register_thread/rcu_unregister_thread() FOR EACH - * THREAD WITH READ-SIDE CRITICAL SECTION. + * DON'T FORGET TO USE rcu_register_thread/rcu_unregister_thread() + * FOR EACH THREAD WITH READ-SIDE CRITICAL SECTION. */ -#define rcu_read_lock() _rcu_read_lock() -#define rcu_read_unlock() _rcu_read_unlock() +#define rcu_read_lock_qsbr _rcu_read_lock +#define rcu_read_unlock_qsbr _rcu_read_unlock -#define rcu_quiescent_state() _rcu_quiescent_state() -#define rcu_thread_offline() _rcu_thread_offline() -#define rcu_thread_online() _rcu_thread_online() +#define rcu_quiescent_state_qsbr _rcu_quiescent_state +#define rcu_thread_offline_qsbr _rcu_thread_offline +#define rcu_thread_online_qsbr _rcu_thread_online #else /* !_LGPL_SOURCE */ @@ -93,7 +96,7 @@ static inline void rcu_read_lock(void) { } -static inline void rcu_read_lock(void) +static inline void rcu_read_unlock(void) { } @@ -122,4 +125,8 @@ extern void rcu_unregister_thread(void); } #endif +#include +#include +#include + #endif /* _URCU_QSBR_H */