From 074ab1c422ffa088948169203e84780765db09c7 Mon Sep 17 00:00:00 2001 From: khizmax Date: Thu, 10 Mar 2016 00:04:37 +0300 Subject: [PATCH] Added HP count --- cds/intrusive/michael_list_hp.h | 2 +- cds/intrusive/michael_set.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cds/intrusive/michael_list_hp.h b/cds/intrusive/michael_list_hp.h index dd4e2e42..b50a41c9 100644 --- a/cds/intrusive/michael_list_hp.h +++ b/cds/intrusive/michael_list_hp.h @@ -31,7 +31,7 @@ #ifndef CDSLIB_INTRUSIVE_MICHAEL_LIST_HP_H #define CDSLIB_INTRUSIVE_MICHAEL_LIST_HP_H -#include #include +#include #endif // #ifndef CDSLIB_INTRUSIVE_MICHAEL_LIST_HP_H diff --git a/cds/intrusive/michael_set.h b/cds/intrusive/michael_set.h index 10058df6..98af25a0 100644 --- a/cds/intrusive/michael_set.h +++ b/cds/intrusive/michael_set.h @@ -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 -- 2.34.1