Added HP count
authorkhizmax <libcds.dev@gmail.com>
Wed, 9 Mar 2016 21:04:37 +0000 (00:04 +0300)
committerkhizmax <libcds.dev@gmail.com>
Wed, 9 Mar 2016 21:04:37 +0000 (00:04 +0300)
cds/intrusive/michael_list_hp.h
cds/intrusive/michael_set.h

index dd4e2e42adacc0d1677adf7adaab5426b7a043d8..b50a41c900a6d37b4f4d1e824881075dfa3d46a0 100644 (file)
@@ -31,7 +31,7 @@
 #ifndef CDSLIB_INTRUSIVE_MICHAEL_LIST_HP_H
 #define CDSLIB_INTRUSIVE_MICHAEL_LIST_HP_H
 
-#include <cds/intrusive/impl/michael_list.h>
 #include <cds/gc/hp.h>
+#include <cds/intrusive/impl/michael_list.h>
 
 #endif // #ifndef CDSLIB_INTRUSIVE_MICHAEL_LIST_HP_H
index 10058df643dfa4292e6e525f727cd160bdd4200a..98af25a09bb73135f31fb8ac68bec7c95de58118 100644 (file)
@@ -264,6 +264,10 @@ namespace cds { namespace intrusive {
         /// Bucket table allocator
         typedef cds::details::Allocator< bucket_type, typename traits::allocator > bucket_table_allocator;
 
+        /// Count of hazard pointer required for the algorithm
+        static CDS_CONSTEXPR const size_t c_nHazardPtrCount = ordered_list::c_nHazardPtrCount;
+
+
     protected:
         item_counter    m_ItemCounter;   ///< Item counter
         hash            m_HashFunctor;   ///< Hash functor