From f9f793454926c32f0fbe258db84e7d37ee16901c Mon Sep 17 00:00:00 2001 From: khizmax Date: Sun, 14 Feb 2016 11:20:09 +0300 Subject: [PATCH] Added Hazard Pointer count --- cds/container/impl/lazy_list.h | 2 ++ cds/container/impl/michael_list.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cds/container/impl/lazy_list.h b/cds/container/impl/lazy_list.h index a765e420..c68f6684 100644 --- a/cds/container/impl/lazy_list.h +++ b/cds/container/impl/lazy_list.h @@ -141,6 +141,8 @@ namespace cds { namespace container { typedef typename maker::key_comparator key_comparator; ///< key comparison functor typedef typename base_class::memory_model memory_model; ///< Memory ordering. See cds::opt::memory_model option + static CDS_CONSTEXPR const size_t c_nHazardPtrCount = base_class::c_nHazardPtrCount; ///< Count of hazard pointer required for the algorithm + protected: //@cond typedef typename base_class::value_type node_type; diff --git a/cds/container/impl/michael_list.h b/cds/container/impl/michael_list.h index 77471545..8284aefc 100644 --- a/cds/container/impl/michael_list.h +++ b/cds/container/impl/michael_list.h @@ -137,6 +137,8 @@ namespace cds { namespace container { typedef typename maker::key_comparator key_comparator; ///< key comparison functor typedef typename base_class::memory_model memory_model; ///< Memory ordering. See \p cds::opt::memory_model option + static CDS_CONSTEXPR const size_t c_nHazardPtrCount = base_class::c_nHazardPtrCount; ///< Count of hazard pointer required for the algorithm + protected: //@cond typedef typename base_class::value_type node_type; -- 2.34.1