summaryrefslogtreecommitdiff
path: root/lib/gras_impl/output_buffer_queues.hpp
diff options
context:
space:
mode:
authorJosh Blum2012-12-15 10:07:32 -0800
committerJosh Blum2012-12-15 10:07:32 -0800
commitbe0a690b4a6f585e13df0a89b8dce1dc47998c4d (patch)
tree0ba4de9054cc9d59d29bf2ffb2de9240c0c2f1fd /lib/gras_impl/output_buffer_queues.hpp
parentb7c0a59c0a86f289f55935b19efaf448e892eefb (diff)
downloadsandhi-be0a690b4a6f585e13df0a89b8dce1dc47998c4d.tar.gz
sandhi-be0a690b4a6f585e13df0a89b8dce1dc47998c4d.tar.bz2
sandhi-be0a690b4a6f585e13df0a89b8dce1dc47998c4d.zip
created input and output update per index
Diffstat (limited to 'lib/gras_impl/output_buffer_queues.hpp')
-rw-r--r--lib/gras_impl/output_buffer_queues.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gras_impl/output_buffer_queues.hpp b/lib/gras_impl/output_buffer_queues.hpp
index 5674c3d..d9cd5e4 100644
--- a/lib/gras_impl/output_buffer_queues.hpp
+++ b/lib/gras_impl/output_buffer_queues.hpp
@@ -57,7 +57,7 @@ struct OutputBufferQueues
GRAS_FORCE_INLINE SBuffer &front(const size_t i)
{
- ASSERT(not _queues[i]->empty());
+ ASSERT(not this->empty(i));
return _queues[i]->front();
}
@@ -93,6 +93,7 @@ struct OutputBufferQueues
GRAS_FORCE_INLINE bool empty(const size_t i) const
{
+ ASSERT(_queues[i]);
return _queues[i]->empty();
}