X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-qsbr.h;h=bb0523c904916062ae1ee4843c8ee5085dd8ee8f;hp=984d70cab45835f7c5da1dad113c7d6b8383e4a4;hb=882f335739b978d1c55be2faeed077f315afe5d7;hpb=5e77fc1f94c3572fca067d37667d74f8165e2434 diff --git a/urcu-qsbr.h b/urcu-qsbr.h index 984d70c..bb0523c 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,7 +41,7 @@ extern "C" { #endif -#include "urcu-qsbr-map.h" +#include /* * Important ! @@ -52,7 +53,7 @@ extern "C" { #ifdef _LGPL_SOURCE -#include +#include /* * Mappings for static use of the userspace RCU library. @@ -67,12 +68,13 @@ extern "C" { * DON'T FORGET TO USE rcu_register_thread/rcu_unregister_thread() * FOR EACH THREAD WITH READ-SIDE CRITICAL SECTION. */ -#define rcu_read_lock_qsbr() _rcu_read_lock() -#define rcu_read_unlock_qsbr() _rcu_read_unlock() +#define rcu_read_lock_qsbr _rcu_read_lock +#define rcu_read_unlock_qsbr _rcu_read_unlock +#define rcu_read_ongoing_qsbr _rcu_read_ongoing -#define rcu_quiescent_state_qsbr() _rcu_quiescent_state() -#define rcu_thread_offline_qsbr() _rcu_thread_offline() -#define rcu_thread_online_qsbr() _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 */ @@ -95,7 +97,7 @@ static inline void rcu_read_lock(void) { } -static inline void rcu_read_lock(void) +static inline void rcu_read_unlock(void) { } @@ -106,6 +108,7 @@ extern void rcu_read_unlock(void); #endif /* !RCU_DEBUG */ +extern int rcu_read_ongoing(void); extern void rcu_quiescent_state(void); extern void rcu_thread_offline(void); extern void rcu_thread_online(void); @@ -124,6 +127,8 @@ extern void rcu_unregister_thread(void); } #endif -#include "urcu-call-rcu.h" +#include +#include +#include #endif /* _URCU_QSBR_H */