From: khizmax Date: Wed, 9 Mar 2016 21:04:37 +0000 (+0300) Subject: Added HP count X-Git-Tag: v2.2.0~371 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=074ab1c422ffa088948169203e84780765db09c7;p=libcds.git Added HP count --- 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