From 378097000d2eedea958906d7f9910ab091b9cf97 Mon Sep 17 00:00:00 2001 From: khizmax Date: Mon, 24 Nov 2014 10:08:17 +0300 Subject: [PATCH] fix bug in exempt_ptr --- cds/urcu/exempt_ptr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1