};
// Specializations for integral type of option
-#define _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION( _type ) template <template <_type> class What, _type A, _type B> \
+#define CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_( _type ) template <template <_type> class What, _type A, _type B> \
struct compare_option< What<A>, What<B> > { typedef compare_ok type ; };
// For user-defined enum types
-#define CDS_DECLARE_FIND_OPTION_INTEGRAL_SPECIALIZATION( _type ) namespace cds { namespace opt { namespace details { _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(_type ) }}}
-
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(bool)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(char)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(unsigned char)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(signed char)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(short int)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(unsigned short int)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(int)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(unsigned int)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(long)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(unsigned long)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(long long)
- _CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION(unsigned long long)
+#define CDS_DECLARE_FIND_OPTION_INTEGRAL_SPECIALIZATION( _type ) namespace cds { namespace opt { namespace details { CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(_type ) }}}
+
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(bool)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(char)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(unsigned char)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(signed char)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(short int)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(unsigned short int)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(int)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(unsigned int)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(long)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(unsigned long)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(long long)
+ CDS_FIND_OPTION_INTEGRAL_SPECIALIZATION_(unsigned long long)
template <typename CompResult, typename Ok, typename Fail>
//$$CDS-header$$
-#ifndef _CDS_URCU_DETAILS_BASE_H
-#define _CDS_URCU_DETAILS_BASE_H
+#ifndef CDSLIB_URCU_DETAILS_BASE_H
+#define CDSLIB_URCU_DETAILS_BASE_H
#include <cds/algo/atomic.h>
#include <cds/gc/details/retired_ptr.h>
} // namespace urcu
} // namespace cds
-#endif // #ifndef _CDS_URCU_DETAILS_BASE_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_BASE_H
//$$CDS-header$$
-#ifndef _CDS_URCU_DETAILS_CHECK_DEADLOCK_H
-#define _CDS_URCU_DETAILS_CHECK_DEADLOCK_H
+#ifndef CDSLIB_URCU_DETAILS_CHECK_DEADLOCK_H
+#define CDSLIB_URCU_DETAILS_CHECK_DEADLOCK_H
#include <cds/urcu/options.h>
}}} // namespace cds::urcu::details
//@endcond
-#endif // #ifndef _CDS_URCU_DETAILS_CHECK_DEADLOCK_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_CHECK_DEADLOCK_H
//$$CDS-header$$
-#ifndef _CDS_URCU_DETAILS_GP_H
-#define _CDS_URCU_DETAILS_GP_H
+#ifndef CDSLIB_URCU_DETAILS_GP_H
+#define CDSLIB_URCU_DETAILS_GP_H
#include <cds/urcu/details/gp_decl.h>
#include <cds/threading/model.h>
}}} // namespace cds:urcu::details
//@endcond
-#endif // #ifndef _CDS_URCU_DETAILS_GP_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_GP_H
//$$CDS-header$$
-#ifndef _CDS_URCU_DETAILS_GP_DECL_H
-#define _CDS_URCU_DETAILS_GP_DECL_H
+#ifndef CDSLIB_URCU_DETAILS_GP_DECL_H
+#define CDSLIB_URCU_DETAILS_GP_DECL_H
#include <cds/urcu/details/base.h>
#include <cds/details/static_functor.h>
}}} // namespace cds::urcu::details
//@endcond
-#endif // #ifndef _CDS_URCU_DETAILS_GP_DECL_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_GP_DECL_H
//$$CDS-header$$
-#ifndef _CDS_URCU_DETAILS_GPB_H
-#define _CDS_URCU_DETAILS_GPB_H
+#ifndef CDSLIB_URCU_DETAILS_GPB_H
+#define CDSLIB_URCU_DETAILS_GPB_H
#include <mutex>
#include <cds/urcu/details/gp.h>
}} // namespace cds::urcu
-#endif // #ifndef _CDS_URCU_DETAILS_GPB_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_GPB_H
//$$CDS-header$$
-#ifndef _CDS_URCU_DETAILS_GPI_H
-#define _CDS_URCU_DETAILS_GPI_H
+#ifndef CDSLIB_URCU_DETAILS_GPI_H
+#define CDSLIB_URCU_DETAILS_GPI_H
#include <mutex>
#include <cds/urcu/details/gp.h>
}} // namespace cds::urcu
-#endif // #ifndef _CDS_URCU_DETAILS_GPI_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_GPI_H
//$$CDS-header$$1
-#ifndef _CDS_URCU_DETAILS_GPT_H
-#define _CDS_URCU_DETAILS_GPT_H
+#ifndef CDSLIB_URCU_DETAILS_GPT_H
+#define CDSLIB_URCU_DETAILS_GPT_H
#include <mutex> //unique_lock
#include <cds/urcu/details/gp.h>
};
}} // namespace cds::urcu
-#endif // #ifndef _CDS_URCU_DETAILS_GPT_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_GPT_H
//$$CDS-header$$
-#ifndef _CDS_URCU_DETAILS_SH_H
-#define _CDS_URCU_DETAILS_SH_H
+#ifndef CDSLIB_URCU_DETAILS_SH_H
+#define CDSLIB_URCU_DETAILS_SH_H
#include <memory.h> //memset
#include <cds/urcu/details/sh_decl.h>
//@endcond
#endif // #ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
-#endif // #ifndef _CDS_URCU_DETAILS_SH_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_SH_H
//$$CDS-header$$
-#ifndef _CDS_URCU_DETAILS_SH_DECL_H
-#define _CDS_URCU_DETAILS_SH_DECL_H
+#ifndef CDSLIB_URCU_DETAILS_SH_DECL_H
+#define CDSLIB_URCU_DETAILS_SH_DECL_H
#include <cds/urcu/details/base.h>
//@endcond
#endif // #ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
-#endif // #ifndef _CDS_URCU_DETAILS_SH_DECL_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_SH_DECL_H
//$$CDS-header$$
-#ifndef _CDS_URCU_DETAILS_SIG_BUFFERED_H
-#define _CDS_URCU_DETAILS_SIG_BUFFERED_H
+#ifndef CDSLIB_URCU_DETAILS_SIG_BUFFERED_H
+#define CDSLIB_URCU_DETAILS_SIG_BUFFERED_H
#include <cds/urcu/details/sh.h>
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
}} // namespace cds::urcu
#endif // #ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
-#endif // #ifndef _CDS_URCU_DETAILS_SIG_BUFFERED_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_SIG_BUFFERED_H
//$$CDS-header$$1
-#ifndef _CDS_URCU_DETAILS_SIG_THREADED_H
-#define _CDS_URCU_DETAILS_SIG_THREADED_H
+#ifndef CDSLIB_URCU_DETAILS_SIG_THREADED_H
+#define CDSLIB_URCU_DETAILS_SIG_THREADED_H
#include <mutex> //unique_lock
#include <cds/urcu/details/sh.h>
}} // namespace cds::urcu
#endif // #ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
-#endif // #ifndef _CDS_URCU_DETAILS_SIG_THREADED_H
+#endif // #ifndef CDSLIB_URCU_DETAILS_SIG_THREADED_H
//$$CDS-header$$1
-#ifndef _CDS_URCU_DISPOSE_THREAD_H
-#define _CDS_URCU_DISPOSE_THREAD_H
+#ifndef CDSLIB_URCU_DISPOSE_THREAD_H
+#define CDSLIB_URCU_DISPOSE_THREAD_H
#include <memory>
#include <thread>
};
}} // namespace cds::urcu
-#endif // #ifdef _CDS_URCU_DISPOSE_THREAD_H
+#endif // #ifdef CDSLIB_URCU_DISPOSE_THREAD_H
//$$CDS-header$$
-#ifndef _CDS_URCU_GENERAL_BUFFERED_H
-#define _CDS_URCU_GENERAL_BUFFERED_H
+#ifndef CDSLIB_URCU_GENERAL_BUFFERED_H
+#define CDSLIB_URCU_GENERAL_BUFFERED_H
#include <cds/urcu/details/gpb.h>
}} // namespace cds::urcu
-#endif // #ifndef _CDS_URCU_GENERAL_BUFFERED_H
+#endif // #ifndef CDSLIB_URCU_GENERAL_BUFFERED_H
//$$CDS-header$$
-#ifndef _CDS_URCU_GENERAL_INSTANT_H
-#define _CDS_URCU_GENERAL_INSTANT_H
+#ifndef CDSLIB_URCU_GENERAL_INSTANT_H
+#define CDSLIB_URCU_GENERAL_INSTANT_H
#include <cds/urcu/details/gpi.h>
}} // namespace cds::urcu
-#endif // #ifndef _CDS_URCU_GENERAL_INSTANT_H
+#endif // #ifndef CDSLIB_URCU_GENERAL_INSTANT_H
//$$CDS-header$$
-#ifndef _CDS_URCU_GENERAL_THREADED_H
-#define _CDS_URCU_GENERAL_THREADED_H
+#ifndef CDSLIB_URCU_GENERAL_THREADED_H
+#define CDSLIB_URCU_GENERAL_THREADED_H
#include <cds/urcu/details/gpt.h>
}} // namespace cds::urcu
-#endif // #ifndef _CDS_URCU_GENERAL_THREADED_H
+#endif // #ifndef CDSLIB_URCU_GENERAL_THREADED_H
//$$CDS-header$$
-#ifndef _CDS_URCU_OPTIONS_H
-#define _CDS_URCU_OPTIONS_H
+#ifndef CDSLIB_URCU_OPTIONS_H
+#define CDSLIB_URCU_OPTIONS_H
#include <cds/details/defs.h>
}} // namespace cds::opt
-#endif // #ifndef _CDS_URCU_OPTIONS_H
+#endif // #ifndef CDSLIB_URCU_OPTIONS_H
//$$CDS-header$$
-#ifndef _CDS_URCU_SIGNAL_BUFFERED_H
-#define _CDS_URCU_SIGNAL_BUFFERED_H
+#ifndef CDSLIB_URCU_SIGNAL_BUFFERED_H
+#define CDSLIB_URCU_SIGNAL_BUFFERED_H
#include <cds/urcu/details/sig_buffered.h>
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
}} // namespace cds::urcu
#endif // #ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
-#endif // #ifndef _CDS_URCU_SIGNAL_BUFFERED_H
+#endif // #ifndef CDSLIB_URCU_SIGNAL_BUFFERED_H
//$$CDS-header$$
-#ifndef _CDS_URCU_SIGNAL_THREADED_H
-#define _CDS_URCU_SIGNAL_THREADED_H
+#ifndef CDSLIB_URCU_SIGNAL_THREADED_H
+#define CDSLIB_URCU_SIGNAL_THREADED_H
#include <cds/urcu/details/sig_threaded.h>
}} // namespace cds::urcu
#endif // #ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
-#endif // #ifndef _CDS_URCU_SIGNAL_THREADED_H
+#endif // #ifndef CDSLIB_URCU_SIGNAL_THREADED_H
//$$CDS-header$$
-#ifndef __CDSIMPL_HP_CONST_H
-#define __CDSIMPL_HP_CONST_H
+#ifndef CDSIMPL_HP_CONST_H
+#define CDSIMPL_HP_CONST_H
/*
File: hp_const.h
} /* namespace gc */ } /* namespace cds */
-#endif // #ifndef __CDSIMPL_HZP_CONST_H
+#endif // #ifndef CDSIMPL_HP_CONST_H