projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow forcing the use of sys membarrier
[userspace-rcu.git]
/
include
/
urcu
/
static
/
urcu-bp.h
diff --git
a/include/urcu/static/urcu-bp.h
b/include/urcu/static/urcu-bp.h
index 6e52d84bafe84f75dfd45593a2b58cad6431bcd0..6bcfab4f404177196e347b55ec25e2ffedf49750 100644
(file)
--- a/
include/urcu/static/urcu-bp.h
+++ b/
include/urcu/static/urcu-bp.h
@@
-33,6
+33,7
@@
#include <pthread.h>
#include <unistd.h>
#include <pthread.h>
#include <unistd.h>
+#include <urcu/config.h>
#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/system.h>
#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/system.h>
@@
-102,7
+103,11
@@
struct rcu_reader {
*/
extern DECLARE_URCU_TLS(struct rcu_reader *, rcu_reader);
*/
extern DECLARE_URCU_TLS(struct rcu_reader *, rcu_reader);
+#ifdef CONFIG_RCU_FORCE_SYS_MEMBARRIER
+#define urcu_bp_has_sys_membarrier 1
+#else
extern int urcu_bp_has_sys_membarrier;
extern int urcu_bp_has_sys_membarrier;
+#endif
static inline void urcu_bp_smp_mb_slave(void)
{
static inline void urcu_bp_smp_mb_slave(void)
{
This page took
0.023628 seconds
and
4
git commands to generate.