Fix: futex.h: include headers outside extern C
[urcu.git] / include / urcu / urcu-bp.h
index d3d122d0f71df610a0276af0e3e5043a6adf4ee7..e28c2bff8e7db3e0fda163b1655369e6799ceac4 100644 (file)
 #include <stdlib.h>
 #include <pthread.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <urcu/map/urcu-bp.h>
 
 /*
@@ -57,6 +53,10 @@ extern "C" {
  */
 #include <urcu/pointer.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #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);
 
 /*
- * 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)
 {
 }
This page took 0.024161 seconds and 4 git commands to generate.