X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-bp.h;h=cca664bc906c7fbbedd94dabeb7a1a7195610811;hp=d42a2cb24f0739f5bd6cef39328775b106cecace;hb=ad918eeb98d1ac8b12015050ee60b488e850ac0d;hpb=fdee2e6dc73cc504ba24be89da539c68742e508e diff --git a/urcu-bp.h b/urcu-bp.h index d42a2cb..cca664b 100644 --- a/urcu-bp.h +++ b/urcu-bp.h @@ -9,7 +9,7 @@ * Slower RCU read-side adapted for tracing library. Does not require thread * registration nor unregistration. Also signal-safe. * - * Copyright (c) 2009 Mathieu Desnoyers + * Copyright (c) 2009 Mathieu Desnoyers * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. * * LGPL-compatible code should include this header with : @@ -42,6 +42,10 @@ */ #include +#ifdef __cplusplus +extern "C" { +#endif + /* * Important ! * @@ -93,8 +97,12 @@ static inline void rcu_unregister_thread(void) { } -static inline void urcu_init(void) +static inline void rcu_init(void) { } +#ifdef __cplusplus +} +#endif + #endif /* _URCU_BP_H */