From: khizmax Date: Fri, 18 Mar 2016 21:58:44 +0000 (+0300) Subject: Minor changes related to unit test X-Git-Tag: v2.2.0~337 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=commitdiff_plain;h=24eab57ec49658a0826314ab53c6a6ffb26361c8 Minor changes related to unit test --- 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.