X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-bp.h;h=d92fbd1755047cc8cb446f9ec568d6b332f29a16;hp=c0a419f99a1a54813cd8f3a5314e43fec5b80c87;hb=81ad2e193e8072f8246212d7eaba72769306c2e4;hpb=36bc70a84250927ba68d5096a0a9740aec157f9b diff --git a/urcu-bp.h b/urcu-bp.h index c0a419f..d92fbd1 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 : @@ -86,6 +86,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. */ @@ -97,7 +107,7 @@ static inline void rcu_unregister_thread(void) { } -static inline void urcu_init(void) +static inline void rcu_init(void) { }