projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move extern "C" down in include/urcu/urcu-bp.h
[userspace-rcu.git]
/
include
/
urcu
/
urcu-bp.h
diff --git
a/include/urcu/urcu-bp.h
b/include/urcu/urcu-bp.h
index d3d122d0f71df610a0276af0e3e5043a6adf4ee7..e28c2bff8e7db3e0fda163b1655369e6799ceac4 100644
(file)
--- a/
include/urcu/urcu-bp.h
+++ b/
include/urcu/urcu-bp.h
@@
-37,10
+37,6
@@
#include <stdlib.h>
#include <pthread.h>
#include <stdlib.h>
#include <pthread.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <urcu/map/urcu-bp.h>
/*
#include <urcu/map/urcu-bp.h>
/*
@@
-57,6
+53,10
@@
extern "C" {
*/
#include <urcu/pointer.h>
*/
#include <urcu/pointer.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef _LGPL_SOURCE
#include <urcu/static/urcu-bp.h>
#ifdef _LGPL_SOURCE
#include <urcu/static/urcu-bp.h>
@@
-151,12
+151,14
@@
extern void urcu_bp_after_fork_parent(void);
extern void urcu_bp_after_fork_child(void);
/*
extern void urcu_bp_after_fork_child(void);
/*
- * In the bulletproof version, the following functions are no-ops.
+ * In the bulletproof version, thread registration is performed lazily,
+ * but it can be forced by issuing an explicit urcu_bp_register_thread().
*/
*/
-static inline void urcu_bp_register_thread(void)
-{
-}
+extern void urcu_bp_register_thread(void);
+/*
+ * In the bulletproof version, the following functions are no-ops.
+ */
static inline void urcu_bp_unregister_thread(void)
{
}
static inline void urcu_bp_unregister_thread(void)
{
}
This page took
0.023078 seconds
and
4
git commands to generate.