void Split_RCU_GPI_cmp();
void Split_RCU_GPI_less();
void Split_RCU_GPI_cmpmix();
+ void Split_RCU_GPI_cmpmix_stat();
void Split_RCU_GPB_cmp();
void Split_RCU_GPB_less();
void Split_RCU_GPB_cmpmix();
+ void Split_RCU_GPB_cmpmix_stat();
void Split_RCU_GPT_cmp();
void Split_RCU_GPT_less();
void Split_RCU_GPT_cmpmix();
+ void Split_RCU_GPT_cmpmix_stat();
void Split_RCU_SHB_cmp();
void Split_RCU_SHB_less();
void Split_RCU_SHB_cmpmix();
+ void Split_RCU_SHB_cmpmix_stat();
void Split_RCU_SHT_cmp();
void Split_RCU_SHT_less();
void Split_RCU_SHT_cmpmix();
+ void Split_RCU_SHT_cmpmix_stat();
void Split_nogc_cmp();
void Split_nogc_less();
void Split_Lazy_RCU_GPI_cmp();
void Split_Lazy_RCU_GPI_less();
void Split_Lazy_RCU_GPI_cmpmix();
+ void Split_Lazy_RCU_GPI_cmpmix_stat();
void Split_Lazy_RCU_GPB_cmp();
void Split_Lazy_RCU_GPB_less();
void Split_Lazy_RCU_GPB_cmpmix();
+ void Split_Lazy_RCU_GPB_cmpmix_stat();
void Split_Lazy_RCU_GPT_cmp();
void Split_Lazy_RCU_GPT_less();
void Split_Lazy_RCU_GPT_cmpmix();
+ void Split_Lazy_RCU_GPT_cmpmix_stat();
void Split_Lazy_RCU_SHB_cmp();
void Split_Lazy_RCU_SHB_less();
void Split_Lazy_RCU_SHB_cmpmix();
+ void Split_Lazy_RCU_SHB_cmpmix_stat();
void Split_Lazy_RCU_SHT_cmp();
void Split_Lazy_RCU_SHT_less();
void Split_Lazy_RCU_SHT_cmpmix();
+ void Split_Lazy_RCU_SHT_cmpmix_stat();
void Split_Lazy_nogc_cmp();
void Split_Lazy_nogc_less();
CPPUNIT_TEST(Split_RCU_GPI_cmp)
CPPUNIT_TEST(Split_RCU_GPI_less)
CPPUNIT_TEST(Split_RCU_GPI_cmpmix)
+ CPPUNIT_TEST( Split_RCU_GPI_cmpmix_stat )
CPPUNIT_TEST(Split_RCU_GPB_cmp)
CPPUNIT_TEST(Split_RCU_GPB_less)
CPPUNIT_TEST(Split_RCU_GPB_cmpmix)
+ CPPUNIT_TEST( Split_RCU_GPB_cmpmix_stat )
CPPUNIT_TEST(Split_RCU_GPT_cmp)
CPPUNIT_TEST(Split_RCU_GPT_less)
CPPUNIT_TEST(Split_RCU_GPT_cmpmix)
+ CPPUNIT_TEST( Split_RCU_GPT_cmpmix_stat )
CPPUNIT_TEST(Split_RCU_SHB_cmp)
CPPUNIT_TEST(Split_RCU_SHB_less)
CPPUNIT_TEST(Split_RCU_SHB_cmpmix)
+ CPPUNIT_TEST( Split_RCU_SHB_cmpmix_stat )
CPPUNIT_TEST(Split_RCU_SHT_cmp)
CPPUNIT_TEST(Split_RCU_SHT_less)
CPPUNIT_TEST(Split_RCU_SHT_cmpmix)
+ CPPUNIT_TEST( Split_RCU_SHT_cmpmix_stat )
CPPUNIT_TEST(Split_nogc_cmp)
CPPUNIT_TEST(Split_nogc_less)
CPPUNIT_TEST(Split_Lazy_RCU_GPI_cmp)
CPPUNIT_TEST(Split_Lazy_RCU_GPI_less)
CPPUNIT_TEST(Split_Lazy_RCU_GPI_cmpmix)
+ CPPUNIT_TEST( Split_Lazy_RCU_GPI_cmpmix_stat )
CPPUNIT_TEST(Split_Lazy_RCU_GPB_cmp)
CPPUNIT_TEST(Split_Lazy_RCU_GPB_less)
CPPUNIT_TEST(Split_Lazy_RCU_GPB_cmpmix)
+ CPPUNIT_TEST( Split_Lazy_RCU_GPB_cmpmix_stat )
CPPUNIT_TEST(Split_Lazy_RCU_GPT_cmp)
CPPUNIT_TEST(Split_Lazy_RCU_GPT_less)
CPPUNIT_TEST(Split_Lazy_RCU_GPT_cmpmix)
+ CPPUNIT_TEST( Split_Lazy_RCU_GPT_cmpmix_stat )
CPPUNIT_TEST(Split_Lazy_RCU_SHB_cmp)
CPPUNIT_TEST(Split_Lazy_RCU_SHB_less)
CPPUNIT_TEST(Split_Lazy_RCU_SHB_cmpmix)
+ CPPUNIT_TEST( Split_Lazy_RCU_SHB_cmpmix_stat )
CPPUNIT_TEST(Split_Lazy_RCU_SHT_cmp)
CPPUNIT_TEST(Split_Lazy_RCU_SHT_less)
CPPUNIT_TEST(Split_Lazy_RCU_SHT_cmpmix)
+ CPPUNIT_TEST( Split_Lazy_RCU_SHT_cmpmix_stat )
CPPUNIT_TEST(Split_Lazy_nogc_cmp)
CPPUNIT_TEST(Split_Lazy_nogc_less)
namespace {
typedef cds::urcu::gc< cds::urcu::general_buffered<> > rcu_type;
- struct RCU_GPB_cmp_traits: public cc::split_list::type_traits
+ struct RCU_GPB_cmp_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_GPB_less_traits: public cc::split_list::type_traits
+ struct RCU_GPB_less_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_GPB_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
}
void HashSetHdrTest::Split_Lazy_RCU_GPB_cmp()
void HashSetHdrTest::Split_Lazy_RCU_GPB_cmpmix()
{
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_GPB_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
test_int_rcu< set >();
// option-based version
test_int_rcu< opt_set >();
}
+ void HashSetHdrTest::Split_Lazy_RCU_GPB_cmpmix_stat()
+ {
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::lazy_list_tag>
+ ,cc::opt::hash< hash_int >
+ ,cc::opt::item_counter< simple_item_counter >
+ ,cc::opt::stat< cc::split_list::stat<>>
+ ,cc::split_list::ordered_list_traits<
+ cc::lazy_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+ }
} // namespace set
namespace {
typedef cds::urcu::gc< cds::urcu::general_instant<> > rcu_type;
- struct RCU_GPI_cmp_traits: public cc::split_list::type_traits
+ struct RCU_GPI_cmp_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_GPI_less_traits: public cc::split_list::type_traits
+ struct RCU_GPI_less_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_GPI_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
+
}
void HashSetHdrTest::Split_Lazy_RCU_GPI_cmp()
void HashSetHdrTest::Split_Lazy_RCU_GPI_cmpmix()
{
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_GPI_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
test_int_rcu< set >();
// option-based version
test_int_rcu< opt_set >();
}
+ void HashSetHdrTest::Split_Lazy_RCU_GPI_cmpmix_stat()
+ {
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::lazy_list_tag>
+ ,cc::opt::hash< hash_int >
+ ,cc::opt::item_counter< simple_item_counter >
+ , cc::opt::stat< cc::split_list::stat<>>
+ ,cc::split_list::ordered_list_traits<
+ cc::lazy_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+ }
} // namespace set
namespace {
typedef cds::urcu::gc< cds::urcu::general_threaded<> > rcu_type;
- struct RCU_GPT_cmp_traits: public cc::split_list::type_traits
+ struct RCU_GPT_cmp_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_GPT_less_traits: public cc::split_list::type_traits
+ struct RCU_GPT_less_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_GPT_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
}
void HashSetHdrTest::Split_Lazy_RCU_GPT_cmp()
void HashSetHdrTest::Split_Lazy_RCU_GPT_cmpmix()
{
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_GPT_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
test_int_rcu< set >();
// option-based version
test_int_rcu< opt_set >();
}
+ void HashSetHdrTest::Split_Lazy_RCU_GPT_cmpmix_stat()
+ {
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::lazy_list_tag>
+ ,cc::opt::hash< hash_int >
+ ,cc::opt::item_counter< simple_item_counter >
+ ,cc::split_list::ordered_list_traits<
+ cc::lazy_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ , cc::opt::stat< cc::split_list::stat<>>
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+ }
} // namespace set
namespace {
typedef cds::urcu::gc< cds::urcu::signal_buffered<> > rcu_type;
- struct RCU_SHB_cmp_traits: public cc::split_list::type_traits
+ struct RCU_SHB_cmp_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_SHB_less_traits: public cc::split_list::type_traits
+ struct RCU_SHB_less_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_SHB_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
+
}
#endif
{
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_SHB_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::lazy_list_tag>
+ ,cc::opt::hash< hash_int >
+ ,cc::opt::item_counter< simple_item_counter >
+ ,cc::split_list::ordered_list_traits<
+ cc::lazy_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+#endif
+ }
+
+ void HashSetHdrTest::Split_Lazy_RCU_SHB_cmpmix_stat()
+ {
+#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
test_int_rcu< set >();
// option-based version
,cc::opt::compare< cmp<item> >
>::type
>
+ ,cc::opt::stat< cc::split_list::stat<>>
>::type
> opt_set;
test_int_rcu< opt_set >();
namespace {
typedef cds::urcu::gc< cds::urcu::signal_threaded<> > rcu_type;
- struct RCU_SHT_cmp_traits: public cc::split_list::type_traits
+ struct RCU_SHT_cmp_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_SHT_less_traits: public cc::split_list::type_traits
+ struct RCU_SHT_less_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_SHT_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::lazy_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::lazy_list::type_traits
+ struct ordered_list_traits: public cc::lazy_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
+
}
#endif
{
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_SHT_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::lazy_list_tag>
+ ,cc::opt::hash< hash_int >
+ ,cc::opt::item_counter< simple_item_counter >
+ ,cc::split_list::ordered_list_traits<
+ cc::lazy_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+#endif
+ }
+
+ void HashSetHdrTest::Split_Lazy_RCU_SHT_cmpmix_stat()
+ {
+#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
test_int_rcu< set >();
// option-based version
,cc::opt::compare< cmp<item> >
>::type
>
+ ,cc::opt::stat< cc::split_list::stat<>>
>::type
> opt_set;
test_int_rcu< opt_set >();
namespace {
typedef cds::urcu::gc< cds::urcu::general_buffered<> > rcu_type;
- struct RCU_GPB_cmp_traits: public cc::split_list::type_traits
+ struct RCU_GPB_cmp_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_GPB_less_traits: public cc::split_list::type_traits
+ struct RCU_GPB_less_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_GPB_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
+
}
void HashSetHdrTest::Split_RCU_GPB_cmp()
void HashSetHdrTest::Split_RCU_GPB_cmpmix()
{
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_GPB_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
test_int_rcu< set >();
// option-based version
test_int_rcu< opt_set >();
}
+ void HashSetHdrTest::Split_RCU_GPB_cmpmix_stat()
+ {
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::michael_list_tag>
+ ,cc::opt::hash< hash_int >
+ ,cc::opt::item_counter< simple_item_counter >
+ ,cc::split_list::ordered_list_traits<
+ cc::michael_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ , cc::opt::stat< cc::split_list::stat<>>
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+ }
} // namespace set
namespace {
typedef cds::urcu::gc< cds::urcu::general_instant<> > rcu_type;
- struct RCU_GPI_cmp_traits: public cc::split_list::type_traits
+ struct RCU_GPI_cmp_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_GPI_less_traits: public cc::split_list::type_traits
+ struct RCU_GPI_less_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_GPI_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
}
void HashSetHdrTest::Split_RCU_GPI_cmp()
void HashSetHdrTest::Split_RCU_GPI_cmpmix()
{
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_GPI_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
test_int_rcu< set >();
// option-based version
test_int_rcu< opt_set >();
}
+ void HashSetHdrTest::Split_RCU_GPI_cmpmix_stat()
+ {
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::michael_list_tag>
+ ,cc::opt::hash< hash_int >
+ , cc::opt::stat< cc::split_list::stat<>>
+ ,cc::opt::item_counter< simple_item_counter >
+ ,cc::split_list::ordered_list_traits<
+ cc::michael_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+ }
} // namespace set
namespace {
typedef cds::urcu::gc< cds::urcu::general_threaded<> > rcu_type;
- struct RCU_GPT_cmp_traits: public cc::split_list::type_traits
+ struct RCU_GPT_cmp_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_GPT_less_traits: public cc::split_list::type_traits
+ struct RCU_GPT_less_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_GPT_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
+
}
void HashSetHdrTest::Split_RCU_GPT_cmp()
void HashSetHdrTest::Split_RCU_GPT_cmpmix()
{
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_GPT_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
test_int_rcu< set >();
// option-based version
test_int_rcu< opt_set >();
}
+ void HashSetHdrTest::Split_RCU_GPT_cmpmix_stat()
+ {
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::michael_list_tag>
+ ,cc::opt::hash< hash_int >
+ ,cc::opt::item_counter< simple_item_counter >
+ , cc::opt::stat< cc::split_list::stat<>>
+ ,cc::split_list::ordered_list_traits<
+ cc::michael_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+ }
} // namespace set
namespace {
typedef cds::urcu::gc< cds::urcu::signal_buffered<> > rcu_type;
- struct RCU_SHB_cmp_traits: public cc::split_list::type_traits
+ struct RCU_SHB_cmp_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_SHB_less_traits: public cc::split_list::type_traits
+ struct RCU_SHB_less_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_SHB_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
+
}
#endif
{
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_SHB_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::michael_list_tag>
+ ,cc::opt::hash< hash_int >
+ ,cc::opt::item_counter< simple_item_counter >
+ ,cc::split_list::ordered_list_traits<
+ cc::michael_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+#endif
+ }
+
+ void HashSetHdrTest::Split_RCU_SHB_cmpmix_stat()
+ {
+#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
test_int_rcu< set >();
// option-based version
,cc::opt::compare< cmp<item> >
>::type
>
+ ,cc::opt::stat< cc::split_list::stat<>>
>::type
> opt_set;
test_int_rcu< opt_set >();
namespace {
typedef cds::urcu::gc< cds::urcu::signal_threaded<> > rcu_type;
- struct RCU_SHT_cmp_traits: public cc::split_list::type_traits
+ struct RCU_SHT_cmp_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::relaxed_ordering memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
};
};
- struct RCU_SHT_less_traits: public cc::split_list::type_traits
+ struct RCU_SHT_less_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef cc::opt::v::sequential_consistent memory_model;
enum { dynamic_bucket_table = false };
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
- struct RCU_SHT_cmpmix_traits: public cc::split_list::type_traits
+ struct RCU_cmpmix_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
typedef HashSetHdrTest::hash_int hash;
typedef HashSetHdrTest::simple_item_counter item_counter;
- struct ordered_list_traits: public cc::michael_list::type_traits
+ struct ordered_list_traits: public cc::michael_list::traits
{
typedef HashSetHdrTest::cmp<HashSetHdrTest::item> compare;
typedef HashSetHdrTest::less<HashSetHdrTest::item> less;
};
};
+
+ struct RCU_cmpmix_stat_traits : public RCU_cmpmix_traits
+ {
+ typedef cc::split_list::stat<> stat;
+ };
+
}
#endif
{
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
// traits-based version
- typedef cc::SplitListSet< rcu_type, item, RCU_SHT_cmpmix_traits > set;
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_traits > set;
+ test_int_rcu< set >();
+
+ // option-based version
+ typedef cc::SplitListSet< rcu_type, item,
+ cc::split_list::make_traits<
+ cc::split_list::ordered_list<cc::michael_list_tag>
+ ,cc::opt::hash< hash_int >
+ ,cc::opt::item_counter< simple_item_counter >
+ ,cc::split_list::ordered_list_traits<
+ cc::michael_list::make_traits<
+ cc::opt::less< less<item> >
+ ,cc::opt::compare< cmp<item> >
+ >::type
+ >
+ >::type
+ > opt_set;
+ test_int_rcu< opt_set >();
+#endif
+ }
+
+ void HashSetHdrTest::Split_RCU_SHT_cmpmix_stat()
+ {
+#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
+ // traits-based version
+ typedef cc::SplitListSet< rcu_type, item, RCU_cmpmix_stat_traits > set;
test_int_rcu< set >();
// option-based version
cc::split_list::ordered_list<cc::michael_list_tag>
,cc::opt::hash< hash_int >
,cc::opt::item_counter< simple_item_counter >
+ ,cc::opt::stat< cc::split_list::stat<>>
,cc::split_list::ordered_list_traits<
cc::michael_list::make_traits<
cc::opt::less< less<item> >