From 83d6eb062ea658d36e1abc3f340a1ecc5fbf4958 Mon Sep 17 00:00:00 2001 From: khizmax Date: Thu, 1 Dec 2016 11:39:07 +0300 Subject: [PATCH] Fixed update desc sequencer --- cds/intrusive/details/ellen_bintree_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cds/intrusive/details/ellen_bintree_base.h b/cds/intrusive/details/ellen_bintree_base.h index efef4eec..41cb8b18 100644 --- a/cds/intrusive/details/ellen_bintree_base.h +++ b/cds/intrusive/details/ellen_bintree_base.h @@ -247,7 +247,7 @@ namespace cds { namespace intrusive { //@cond update_ptr null_update_desc() { - return update_ptr( reinterpret_cast( (m_nEmptyUpdate.fetch_add(1, atomics::memory_order_relaxed) << 2) & 0xFFFF )); + return update_ptr( reinterpret_cast( ((m_nEmptyUpdate.fetch_add(1, atomics::memory_order_relaxed) + 1 ) << 2) & 0xFFFF )); } base_class * get_child( bool bRight, atomics::memory_order mo ) const -- 2.34.1