Docfix
authorkhizmax <libcds.dev@gmail.com>
Sun, 13 Mar 2016 09:22:17 +0000 (12:22 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sun, 13 Mar 2016 09:22:17 +0000 (12:22 +0300)
cds/intrusive/details/skip_list_base.h
cds/intrusive/impl/skip_list.h

index 4c0501653a3abde25d2287505293b1f84da5ed8e..7a18b503542ab00e5288dba9ddd0d6eec2648d1e 100644 (file)
@@ -551,7 +551,7 @@ namespace cds { namespace intrusive {
             /// Item counter
             /**
                 The type for item counting feature.
-                By default, item counting is disabled (\p atomicity::empty_item_counter)
+                By default, item counting is disabled (\p atomicity::empty_item_counter),
                 \p atomicity::item_counter enables it.
             */
             typedef atomicity::empty_item_counter     item_counter;
index fee5547b4c07076bb18f07f31f61b43131f8b715..5fd0545f23cd2609667be9bebc6b31abf4d1d8b6 100644 (file)
@@ -391,6 +391,11 @@ namespace cds { namespace intrusive {
         static unsigned int const c_nMinHeight = 5;
         //@endcond
 
+        // c_nMaxHeight * 2 - pPred/pSucc guards
+        // + 1 - for erase, unlink
+        // + 1 - for clear
+        static size_t const c_nHazardPtrCount = c_nMaxHeight * 2 + 2; ///< Count of hazard pointer required for the skip-list
+
     protected:
         typedef typename node_type::atomic_marked_ptr   atomic_node_ptr;   ///< Atomic marked node pointer
         typedef typename node_type::marked_ptr          marked_node_ptr;   ///< Node marked pointer
@@ -407,10 +412,6 @@ namespace cds { namespace intrusive {
 
         typedef std::unique_ptr< node_type, typename node_builder::node_disposer > scoped_node_ptr;
 
-        // c_nMaxHeight * 2 - pPred/pSucc guards
-        // + 1 - for erase, unlink
-        // + 1 - for clear
-        static size_t const c_nHazardPtrCount = c_nMaxHeight * 2 + 2;
         struct position {
             node_type *   pPrev[ c_nMaxHeight ];
             node_type *   pSucc[ c_nMaxHeight ];