7 * Userspace RCU header - deferred execution
9 * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
10 * Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
12 * LGPL-compatible code should include this header with :
14 * #define _LGPL_SOURCE
15 * #include <urcu-defer.h>
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public
19 * License as published by the Free Software Foundation; either
20 * version 2.1 of the License, or (at your option) any later version.
22 * This library is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 * Lesser General Public License for more details.
27 * You should have received a copy of the GNU Lesser General Public
28 * License along with this library; if not, write to the Free Software
29 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
38 * Each thread queuing memory reclamation must be registered with
39 * rcu_defer_register_thread(). rcu_defer_unregister_thread() should be
40 * called before the thread exits.
42 * *NEVER* use call_rcu()/rcu_defer_queue() within a RCU read-side critical
43 * section, because this primitive need to call synchronize_rcu() if the thread
47 #define call_rcu rcu_defer_queue
48 #define rcu_reclaim_queue(p) rcu_defer_queue(free, p)
50 extern void rcu_defer_queue(void (*fct
)(void *p
), void *p
);
53 * Thread registration for reclamation.
55 extern void rcu_defer_register_thread(void);
56 extern void rcu_defer_unregister_thread(void);
57 extern void rcu_defer_barrier(void);
58 extern void rcu_defer_barrier_thread(void);
60 #endif /* _URCU_BATCH_H */
This page took 0.035915 seconds and 4 git commands to generate.