From: Mathieu Desnoyers Date: Fri, 10 Jun 2011 21:11:04 +0000 (-0400) Subject: Add urcu/cds.h placeholder for all CDS headers X-Git-Tag: v0.6.0~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e5a7d7098f8ed32390c53e166e9638b55d2a38dc;p=userspace-rcu.git Add urcu/cds.h placeholder for all CDS headers Using CDS headers becomes as simple as: #include and link with -lurcu-cds Signed-off-by: Mathieu Desnoyers --- diff --git a/Makefile.am b/Makefile.am index 3c06a2e..e14b8d2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,7 +13,7 @@ nobase_dist_include_HEADERS = urcu/compiler.h urcu/hlist.h urcu/list.h \ urcu/rculist.h urcu/rcuhlist.h urcu/system.h urcu/futex.h \ urcu/uatomic/generic.h urcu/arch/generic.h urcu/wfstack.h \ urcu/wfqueue.h urcu/rculfstack.h urcu/rculfqueue.h \ - urcu/ref.h urcu/map/*.h urcu/static/*.h + urcu/ref.h urcu/map/*.h urcu/static/*.h urcu/cds.h nobase_nodist_include_HEADERS = urcu/arch.h urcu/uatomic.h urcu/config.h EXTRA_DIST = $(top_srcdir)/urcu/arch/*.h $(top_srcdir)/urcu/uatomic/*.h \ diff --git a/tests/test_urcu_lfq.c b/tests/test_urcu_lfq.c index cd72fac..b5cd559 100644 --- a/tests/test_urcu_lfq.c +++ b/tests/test_urcu_lfq.c @@ -62,7 +62,7 @@ static inline pid_t gettid(void) #define _LGPL_SOURCE #endif #include -#include +#include static volatile int test_go, test_stop; diff --git a/tests/test_urcu_lfs.c b/tests/test_urcu_lfs.c index 71596fd..71229da 100644 --- a/tests/test_urcu_lfs.c +++ b/tests/test_urcu_lfs.c @@ -62,7 +62,7 @@ static inline pid_t gettid(void) #define _LGPL_SOURCE #endif #include -#include +#include #include static volatile int test_go, test_stop; diff --git a/urcu/cds.h b/urcu/cds.h new file mode 100644 index 0000000..f37a63a --- /dev/null +++ b/urcu/cds.h @@ -0,0 +1,35 @@ +#ifndef _URCU_CDS_H +#define _URCU_CDS_H + +/* + * urcu/cds.h + * + * Userspace RCU library - Concurrent Data Structures + * + * Copyright 2011 - Mathieu Desnoyers + * + * 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 + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#endif /* _URCU_CDS_H */