X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=urcu%2Fmap%2Furcu-bp.h;fp=urcu%2Fmap%2Furcu-bp.h;h=4abe8dccb1bc8d56358baedf9f5457eb608730c8;hb=57760d447eaed07f8a9c6552b8cefc6223ac1158;hp=0000000000000000000000000000000000000000;hpb=98bc124a1949657d6af385f8b257af3a58957e51;p=urcu.git diff --git a/urcu/map/urcu-bp.h b/urcu/map/urcu-bp.h new file mode 100644 index 0000000..4abe8dc --- /dev/null +++ b/urcu/map/urcu-bp.h @@ -0,0 +1,67 @@ +#ifndef _URCU_BP_MAP_H +#define _URCU_BP_MAP_H + +/* + * urcu-map.h + * + * Userspace RCU header -- name mapping to allow multiple flavors to be + * used in the same executable. + * + * Copyright (c) 2009 Mathieu Desnoyers + * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. + * + * LGPL-compatible code should include this header with : + * + * #define _LGPL_SOURCE + * #include + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * IBM's contributions to this file may be relicensed under LGPLv2 or later. + */ + +/* Mapping macros to allow multiple flavors in a single binary. */ + +#define rcu_read_lock rcu_read_lock_bp +#define _rcu_read_lock _rcu_read_lock_bp +#define rcu_read_unlock rcu_read_unlock_bp +#define _rcu_read_unlock _rcu_read_unlock_bp +#define rcu_register_thread rcu_register_thread_bp +#define rcu_unregister_thread rcu_unregister_thread_bp +#define rcu_init rcu_init_bp +#define rcu_exit rcu_exit_bp +#define synchronize_rcu synchronize_rcu_bp +#define rcu_reader rcu_reader_bp +#define rcu_gp_ctr rcu_gp_ctr_bp + +#define get_cpu_call_rcu_data get_cpu_call_rcu_data_bp +#define get_call_rcu_thread get_call_rcu_thread_bp +#define create_call_rcu_data create_call_rcu_data_bp +#define set_cpu_call_rcu_data set_cpu_call_rcu_data_bp +#define get_default_call_rcu_data get_default_call_rcu_data_bp +#define get_call_rcu_data get_call_rcu_data_bp +#define get_thread_call_rcu_data get_thread_call_rcu_data_bp +#define set_thread_call_rcu_data set_thread_call_rcu_data_bp +#define create_all_cpu_call_rcu_data create_all_cpu_call_rcu_data_bp +#define free_all_cpu_call_rcu_data free_all_cpu_call_rcu_data_bp +#define call_rcu call_rcu_bp + +#define defer_rcu defer_rcu_bp +#define rcu_defer_register_thread rcu_defer_register_thread_bp +#define rcu_defer_unregister_thread rcu_defer_unregister_thread_bp +#define rcu_defer_barrier rcu_defer_barrier_bp +#define rcu_defer_barrier_thread rcu_defer_barrier_thread_bp + +#endif /* _URCU_BP_MAP_H */