Add back-off strategy to EllenBinTree
[libcds.git] / tests / test-hdr / tree / hdr_intrusive_ellen_bintree_rcu_gpt.cpp
index d11b4ebc2f5f7f118d8cb19570364879c4074733..1512deee95708b4efdb3d65911aa94d6bd0a3e4c 100644 (file)
@@ -116,7 +116,7 @@ namespace tree {
         test_rcu<tree_type, print_stat>();
     }
 
-        void IntrusiveBinTreeHdrTest::EllenBinTree_rcu_gpt_base_cmp_ic_stat()
+    void IntrusiveBinTreeHdrTest::EllenBinTree_rcu_gpt_base_cmp_ic_stat()
     {
         typedef ci::EllenBinTree< rcu_type, key_type, base_value,
             ci::ellen_bintree::make_traits<
@@ -132,6 +132,23 @@ namespace tree {
         test_rcu<tree_type, print_stat>();
     }
 
+    void IntrusiveBinTreeHdrTest::EllenBinTree_rcu_gpt_base_cmp_ic_stat_yield()
+    {
+        typedef ci::EllenBinTree< rcu_type, key_type, base_value,
+            ci::ellen_bintree::make_traits<
+                ci::opt::hook< ci::ellen_bintree::base_hook< co::gc< rcu_type > > >
+                ,ci::ellen_bintree::key_extractor< key_extractor< base_value > >
+                ,co::compare< compare< base_value > >
+                ,ci::opt::disposer< disposer< base_value > >
+                ,co::item_counter< cds::atomicity::item_counter >
+                ,co::stat< ci::ellen_bintree::stat<> >
+                , co::back_off< cds::backoff::yield >
+            >::type
+        > tree_type;
+
+        test_rcu<tree_type, print_stat>();
+    }
+
     void IntrusiveBinTreeHdrTest::EllenBinTree_rcu_gpt_base_less_pool()
     {
         typedef ci::EllenBinTree< rcu_type, key_type, base_value,