From da3a7d31195a201e593b09387e0f22202a5bc095 Mon Sep 17 00:00:00 2001 From: khizmax Date: Sun, 13 Mar 2016 21:10:54 +0300 Subject: [PATCH] Removed RCU locking assertion in iterators --- cds/intrusive/skip_list_rcu.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/cds/intrusive/skip_list_rcu.h b/cds/intrusive/skip_list_rcu.h index c97de56f..0fc5992a 100644 --- a/cds/intrusive/skip_list_rcu.h +++ b/cds/intrusive/skip_list_rcu.h @@ -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 { -- 2.34.1