Issue #59: added missing ifdef _DEBUG for assertions
authorkhizmax <libcds.dev@gmail.com>
Mon, 6 Jun 2016 18:56:21 +0000 (21:56 +0300)
committerkhizmax <libcds.dev@gmail.com>
Mon, 6 Jun 2016 18:56:21 +0000 (21:56 +0300)
cds/intrusive/segmented_queue.h
thanks

index 83cfb1d..1a42b33 100644 (file)
@@ -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 755a62b..9747104 100644 (file)
--- a/thanks
+++ b/thanks
@@ -6,6 +6,7 @@ blinkenlichten (https://github.com/blinkenlichten)
 Eugeny Kalishenko (https://github.com/eugenyk)\r
 Jelle van den Hooff\r
 Kyle Hegeman (https://github.com/khegeman)\r
+Lily Tsai (https://github.com/tslilyai)\r
 Lucas Larsch\r
 Markus Elfring\r
 Mykola Dimura\r