From 6f7f64404704cdbb883dc9c405e10a2b0609c835 Mon Sep 17 00:00:00 2001 From: khizmax Date: Mon, 6 Jun 2016 21:56:21 +0300 Subject: [PATCH] Issue #59: added missing ifdef _DEBUG for assertions --- cds/intrusive/segmented_queue.h | 6 +++++- thanks | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cds/intrusive/segmented_queue.h b/cds/intrusive/segmented_queue.h index 83cfb1da..1a42b33a 100644 --- a/cds/intrusive/segmented_queue.h +++ b/cds/intrusive/segmented_queue.h @@ -374,7 +374,9 @@ namespace cds { namespace intrusive { return guard.assign( &m_List.back() ); } +# ifdef _DEBUG assert( m_List.empty() || populated( m_List.back() )); +# endif segment * pNew = allocate_segment(); m_Stat.onSegmentCreated(); @@ -406,7 +408,9 @@ namespace cds { namespace intrusive { return guard.assign( &m_List.front() ); } - assert( exhausted(m_List.front()) ); +# ifdef _DEBUG + assert( exhausted( m_List.front())); +# endif m_List.pop_front(); if ( m_List.empty() ) { diff --git a/thanks b/thanks index 755a62bc..97471040 100644 --- a/thanks +++ b/thanks @@ -6,6 +6,7 @@ blinkenlichten (https://github.com/blinkenlichten) Eugeny Kalishenko (https://github.com/eugenyk) Jelle van den Hooff Kyle Hegeman (https://github.com/khegeman) +Lily Tsai (https://github.com/tslilyai) Lucas Larsch Markus Elfring Mykola Dimura -- 2.34.1