Commit | Line | Data |
---|---|---|
d3d3857f MJ |
1 | // SPDX-FileCopyrightText: 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
2 | // SPDX-FileCopyrightText: 2009 Paul E. McKenney, IBM Corporation. | |
3 | // | |
4 | // SPDX-License-Identifier: LGPL-2.1-or-later | |
5 | ||
4477a870 MD |
6 | #ifndef _URCU_H |
7 | #define _URCU_H | |
90075a50 MD |
8 | |
9 | /* | |
4477a870 | 10 | * Userspace RCU header |
90075a50 | 11 | * |
90075a50 MD |
12 | * LGPL-compatible code should include this header with : |
13 | * | |
14 | * #define _LGPL_SOURCE | |
4477a870 | 15 | * #include <urcu.h> |
90075a50 | 16 | * |
4477a870 | 17 | * IBM's contributions to this file may be relicensed under LGPLv2 or later. |
90075a50 MD |
18 | */ |
19 | ||
4477a870 MD |
20 | #if !defined(RCU_MEMBARRIER) && !defined(RCU_SIGNAL) && !defined(RCU_MB) |
21 | #define RCU_MEMBARRIER | |
22 | #endif | |
90075a50 | 23 | |
4477a870 MD |
24 | #ifdef RCU_MEMBARRIER |
25 | #include <urcu/urcu-memb.h> | |
26 | #elif defined(RCU_SIGNAL) | |
27 | #include <urcu/urcu-signal.h> | |
28 | #elif defined(RCU_MB) | |
29 | #include <urcu/urcu-mb.h> | |
30 | #else | |
31 | #error "Unknown urcu flavor" | |
36bc70a8 MD |
32 | #endif |
33 | ||
4477a870 | 34 | #endif /* _URCU_H */ |