projects
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #59: added missing ifdef _DEBUG for assertions
[libcds.git]
/
cds
/
intrusive
/
segmented_queue.h
diff --git
a/cds/intrusive/segmented_queue.h
b/cds/intrusive/segmented_queue.h
index 83cfb1da6c5f51f1ef43283ae006219d59a9e5aa..1a42b33ae9a35026c1c327b765b5642653bfa4d8 100644
(file)
--- 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() );
}
return guard.assign( &m_List.back() );
}
+# ifdef _DEBUG
assert( m_List.empty() || populated( m_List.back() ));
assert( m_List.empty() || populated( m_List.back() ));
+# endif
segment * pNew = allocate_segment();
m_Stat.onSegmentCreated();
segment * pNew = allocate_segment();
m_Stat.onSegmentCreated();
@@
-406,7
+408,9
@@
namespace cds { namespace intrusive {
return guard.assign( &m_List.front() );
}
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() ) {
m_List.pop_front();
if ( m_List.empty() ) {