projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git]
/
urcu-bp-static.h
diff --git
a/urcu-bp-static.h
b/urcu-bp-static.h
index 428c53f9d38cd6491d64926332498871f00df1a7..7db2df6fcb7723c833dd7423c2d2e508efb83fb6 100644
(file)
--- a/
urcu-bp-static.h
+++ b/
urcu-bp-static.h
@@
-37,7
+37,7
@@
#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/system.h>
#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/system.h>
-#include <urcu/
arch_uatomic
.h>
+#include <urcu/
uatomic_arch
.h>
#include <urcu/list.h>
/*
#include <urcu/list.h>
/*
@@
-48,6
+48,10
@@
* This is required to permit relinking with newer versions of the library.
*/
* This is required to permit relinking with newer versions of the library.
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Active attempts to check for reader Q.S. before calling sleep().
*/
/*
* Active attempts to check for reader Q.S. before calling sleep().
*/
@@
-194,4
+198,8
@@
static inline void _rcu_read_unlock(void)
_STORE_SHARED(urcu_reader->ctr, urcu_reader->ctr - RCU_GP_COUNT);
}
_STORE_SHARED(urcu_reader->ctr, urcu_reader->ctr - RCU_GP_COUNT);
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _URCU_BP_STATIC_H */
#endif /* _URCU_BP_STATIC_H */
This page took
0.024229 seconds
and
4
git commands to generate.