From 24eab57ec49658a0826314ab53c6a6ffb26361c8 Mon Sep 17 00:00:00 2001 From: khizmax Date: Sat, 19 Mar 2016 00:58:44 +0300 Subject: [PATCH] Minor changes related to unit test --- cds/container/split_list_set.h | 3 +++ cds/container/split_list_set_nogc.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/cds/container/split_list_set.h b/cds/container/split_list_set.h index 5ef7d955..a68cd89d 100644 --- a/cds/container/split_list_set.h +++ b/cds/container/split_list_set.h @@ -180,6 +180,9 @@ namespace cds { namespace container { typedef typename base_class::item_counter item_counter; ///< Item counter type typedef typename base_class::stat stat; ///< Internal statistics + /// Count of hazard pointer required + static CDS_CONSTEXPR const size_t c_nHazardPtrCount = base_class::c_nHazardPtrCount; + protected: //@cond typedef typename maker::cxx_node_allocator cxx_node_allocator; diff --git a/cds/container/split_list_set_nogc.h b/cds/container/split_list_set_nogc.h index 6a7f7749..8a83494f 100644 --- a/cds/container/split_list_set_nogc.h +++ b/cds/container/split_list_set_nogc.h @@ -391,6 +391,12 @@ namespace cds { namespace container { } //@endcond + /// Clears the set (not atomic, for debugging purposes only) + void clear() + { + base_class::clear(); + } + /// Checks if the set is empty /** Emptiness is checked by item counting: if item count is zero then the set is empty. -- 2.34.1