#include <pthread.h>
/*
- * 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 <urcu-pointer.h>
extern "C" {
#endif
-#include "urcu-qsbr-map.h"
+#include <urcu/map/urcu-qsbr.h>
/*
* Important !
#ifdef _LGPL_SOURCE
-#include <urcu-qsbr-static.h>
+#include <urcu/static/urcu-qsbr.h>
/*
* Mappings for static use of the userspace RCU library.
* 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_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 */
{
}
-static inline void rcu_read_lock(void)
+static inline void rcu_read_unlock(void)
{
}
}
#endif
-#include "urcu-call-rcu.h"
+#include <urcu-call-rcu.h>
+#include <urcu-defer.h>
#endif /* _URCU_QSBR_H */