X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=cds%2Furcu%2Fexempt_ptr.h;h=0a7ba1f55262b5146e13f14a43594131319b96fa;hb=9ffe43a2b52bbbfb8b85040658598410492a3709;hp=e86103a145db4acc28cd5a672181378cd0425045;hpb=e9fda6acf3c6a28fb822cfe85d784682eb8dbbe0;p=libcds.git diff --git a/cds/urcu/exempt_ptr.h b/cds/urcu/exempt_ptr.h index e86103a1..0a7ba1f5 100644 --- a/cds/urcu/exempt_ptr.h +++ b/cds/urcu/exempt_ptr.h @@ -242,8 +242,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; }