projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: remove duplicated code
[urcu.git]
/
urcu-qsbr.h
diff --git
a/urcu-qsbr.h
b/urcu-qsbr.h
index 75ea14cc0edb8ffa0060c21b1502611704342aad..b4a28a78a6a84490611f1a12277197f4a02092d6 100644
(file)
--- a/
urcu-qsbr.h
+++ b/
urcu-qsbr.h
@@
-32,7
+32,8
@@
#include <pthread.h>
/*
#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>
*/
#include <urcu-pointer.h>
@@
-40,7
+41,7
@@
extern "C" {
#endif
extern "C" {
#endif
-#include
"urcu-qsbr-map.h"
+#include
<urcu/map/urcu-qsbr.h>
/*
* Important !
/*
* Important !
@@
-52,7
+53,7
@@
extern "C" {
#ifdef _LGPL_SOURCE
#ifdef _LGPL_SOURCE
-#include <urcu
-qsbr-static
.h>
+#include <urcu
/static/urcu-qsbr
.h>
/*
* Mappings for static use of the userspace RCU library.
/*
* Mappings for static use of the userspace RCU library.
@@
-69,6
+70,7
@@
extern "C" {
*/
#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_quiescent_state_qsbr _rcu_quiescent_state
#define rcu_thread_offline_qsbr _rcu_thread_offline
@@
-89,7
+91,7
@@
extern "C" {
* library debugging & tracing features we could come up with.
*/
* library debugging & tracing features we could come up with.
*/
-#if (!defined(BUILD_QSBR_LIB) && defined(RCU_DEBUG))
+#if (!defined(BUILD_QSBR_LIB) &&
!
defined(RCU_DEBUG))
static inline void rcu_read_lock(void)
{
static inline void rcu_read_lock(void)
{
@@
-106,6
+108,7
@@
extern void rcu_read_unlock(void);
#endif /* !RCU_DEBUG */
#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);
extern void rcu_quiescent_state(void);
extern void rcu_thread_offline(void);
extern void rcu_thread_online(void);
@@
-124,7
+127,8
@@
extern void rcu_unregister_thread(void);
}
#endif
}
#endif
-#include "urcu-call-rcu.h"
-#include "urcu-defer.h"
+#include <urcu-call-rcu.h>
+#include <urcu-defer.h>
+#include <urcu-flavor.h>
#endif /* _URCU_QSBR_H */
#endif /* _URCU_QSBR_H */
This page took
0.024313 seconds
and
4
git commands to generate.