X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Furcu%2Furcu-bp.h;h=e28c2bff8e7db3e0fda163b1655369e6799ceac4;hb=2ad3cfebe9d73f2a1f7f2b9a5c013a9759f14f73;hp=d3d122d0f71df610a0276af0e3e5043a6adf4ee7;hpb=6cd23d474d3b7d3d090652d0d0b9508ab7d1f9f8;p=userspace-rcu.git diff --git a/include/urcu/urcu-bp.h b/include/urcu/urcu-bp.h index d3d122d..e28c2bf 100644 --- a/include/urcu/urcu-bp.h +++ b/include/urcu/urcu-bp.h @@ -37,10 +37,6 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - #include /* @@ -57,6 +53,10 @@ extern "C" { */ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef _LGPL_SOURCE #include @@ -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) { }