Removed RCU locking assertion in iterators
authorkhizmax <libcds.dev@gmail.com>
Sun, 13 Mar 2016 18:10:54 +0000 (21:10 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sun, 13 Mar 2016 18:10:54 +0000 (21:10 +0300)
cds/intrusive/skip_list_rcu.h

index c97de56f798613dd36aa25754e9f64f65075cd93..0fc5992a71cb1ef68111176ac656e8dfb10ed2b2 100644 (file)
@@ -218,9 +218,6 @@ namespace cds { namespace intrusive {
         protected:
             void next()
             {
-                // RCU should be locked before iterating!!!
-                assert( gc::is_locked() );
-
                 back_off bkoff;
 
                 for (;;) {
@@ -253,9 +250,6 @@ namespace cds { namespace intrusive {
             iterator( node_type& refHead )
                 : m_pNode( nullptr )
             {
-                // RCU should be locked before iterating!!!
-                assert( gc::is_locked() );
-
                 back_off bkoff;
 
                 for (;;) {
@@ -279,17 +273,11 @@ namespace cds { namespace intrusive {
         public:
             iterator()
                 : m_pNode( nullptr )
-            {
-                // RCU should be locked before iterating!!!
-                assert( gc::is_locked() );
-            }
+            {}
 
             iterator( iterator const& s)
                 : m_pNode( s.m_pNode )
-            {
-                // RCU should be locked before iterating!!!
-                assert( gc::is_locked() );
-            }
+            {}
 
             value_type * operator ->() const
             {