From: khizmax Date: Mon, 24 Nov 2014 07:08:17 +0000 (+0300) Subject: fix bug in exempt_ptr X-Git-Tag: v2.0.0~60 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=commitdiff_plain;h=378097000d2eedea958906d7f9910ab091b9cf97;ds=sidebyside fix bug in exempt_ptr --- diff --git a/cds/urcu/exempt_ptr.h b/cds/urcu/exempt_ptr.h index 0a7ba1f5..9fb2d302 100644 --- a/cds/urcu/exempt_ptr.h +++ b/cds/urcu/exempt_ptr.h @@ -144,8 +144,8 @@ namespace cds { namespace urcu { /// Disposes the pointer. Should be called only outside of RCU critical section void release() { - assert( !rcu::is_locked() ); if ( !empty() ) { + assert( !rcu::is_locked() ); rcu::template retire_ptr( m_pNode ); m_pNode = nullptr; }