uatomic/x86: Remove redundant memory barriers
[urcu.git] / include / urcu / urcu.h
1 #ifndef _URCU_H
2 #define _URCU_H
3
4 /*
5 * urcu.h
6 *
7 * Userspace RCU header
8 *
9 * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
10 * Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
11 *
12 * LGPL-compatible code should include this header with :
13 *
14 * #define _LGPL_SOURCE
15 * #include <urcu.h>
16 *
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.
21 *
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.
26 *
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
30 *
31 * IBM's contributions to this file may be relicensed under LGPLv2 or later.
32 */
33
34 #if !defined(RCU_MEMBARRIER) && !defined(RCU_SIGNAL) && !defined(RCU_MB)
35 #define RCU_MEMBARRIER
36 #endif
37
38 #ifdef RCU_MEMBARRIER
39 #include <urcu/urcu-memb.h>
40 #elif defined(RCU_SIGNAL)
41 #include <urcu/urcu-signal.h>
42 #elif defined(RCU_MB)
43 #include <urcu/urcu-mb.h>
44 #else
45 #error "Unknown urcu flavor"
46 #endif
47
48 #endif /* _URCU_H */
This page took 0.029219 seconds and 4 git commands to generate.