From: khizmax Date: Sun, 13 Mar 2016 18:10:54 +0000 (+0300) Subject: Removed RCU locking assertion in iterators X-Git-Tag: v2.2.0~359 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=da3a7d31195a201e593b09387e0f22202a5bc095;p=libcds.git Removed RCU locking assertion in iterators --- 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 {