Minor changes related to unit test
authorkhizmax <libcds.dev@gmail.com>
Fri, 18 Mar 2016 21:58:44 +0000 (00:58 +0300)
committerkhizmax <libcds.dev@gmail.com>
Fri, 18 Mar 2016 21:58:44 +0000 (00:58 +0300)
cds/container/split_list_set.h
cds/container/split_list_set_nogc.h

index 5ef7d955cc03df0f4d37590cbdbdc7ce507e3e48..a68cd89d7a9fb2a3edb8b9517b22db8a6b0c0818 100644 (file)
@@ -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;
index 6a7f7749af2b473815939ae2e87475399fa73911..8a83494f8040149c3c49e7207cfa90d5e9a8f1ea 100644 (file)
@@ -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.