X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=urcu-bp.h;h=bc2dbc370f7f80e0610613078e7417478829265f;hb=ef84facf4b0c23bd695ca9300055e3ffc9b56006;hp=cca664bc906c7fbbedd94dabeb7a1a7195610811;hpb=6982d6d71aeed16d2d929bd0ed221e8f444b706e;p=urcu.git diff --git a/urcu-bp.h b/urcu-bp.h index cca664b..bc2dbc3 100644 --- a/urcu-bp.h +++ b/urcu-bp.h @@ -46,6 +46,8 @@ extern "C" { #endif +#include "urcu-bp-map.h" + /* * Important ! * @@ -69,8 +71,8 @@ extern "C" { * * Mark the beginning and end of a read-side critical section. */ -#define rcu_read_lock() _rcu_read_lock() -#define rcu_read_unlock() _rcu_read_unlock() +#define rcu_read_lock_bp _rcu_read_lock +#define rcu_read_unlock_bp _rcu_read_unlock #else /* !_LGPL_SOURCE */ @@ -86,6 +88,16 @@ extern void rcu_read_unlock(void); extern void synchronize_rcu(void); +/* + * rcu_bp_before_fork, rcu_bp_after_fork_parent and rcu_bp_after_fork_child + * should be called around fork() system calls when the child process is not + * expected to immediately perform an exec(). For pthread users, see + * pthread_atfork(3). + */ +extern void rcu_bp_before_fork(void); +extern void rcu_bp_after_fork_parent(void); +extern void rcu_bp_after_fork_child(void); + /* * In the bulletproof version, the following functions are no-ops. */ @@ -105,4 +117,6 @@ static inline void rcu_init(void) } #endif +#include "urcu-call-rcu.h" + #endif /* _URCU_BP_H */