#include <stdlib.h>
#include <pthread.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <urcu/map/urcu-bp.h>
/*
*/
#include <urcu/pointer.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef _LGPL_SOURCE
#include <urcu/static/urcu-bp.h>
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)
{
}