summaryrefslogtreecommitdiff
path: root/lib/gras_impl/block_actor.hpp
diff options
context:
space:
mode:
authorJosh Blum2013-03-29 02:02:17 -0700
committerJosh Blum2013-03-29 02:02:17 -0700
commitf66540d088d46ef4e52367ad083573e557e4cab5 (patch)
tree7926db018eac0f82c37f90292d346388c10cf1c6 /lib/gras_impl/block_actor.hpp
parentcb93ca52e8768a8b53ff5576c41b29a3144793f1 (diff)
downloadsandhi-f66540d088d46ef4e52367ad083573e557e4cab5.tar.gz
sandhi-f66540d088d46ef4e52367ad083573e557e4cab5.tar.bz2
sandhi-f66540d088d46ef4e52367ad083573e557e4cab5.zip
gras: reuse inputs_available for done logic
Diffstat (limited to 'lib/gras_impl/block_actor.hpp')
-rw-r--r--lib/gras_impl/block_actor.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gras_impl/block_actor.hpp b/lib/gras_impl/block_actor.hpp
index 25c83f6..9006d6e 100644
--- a/lib/gras_impl/block_actor.hpp
+++ b/lib/gras_impl/block_actor.hpp
@@ -132,8 +132,7 @@ struct BlockActor : Apology::Worker
GRAS_FORCE_INLINE bool is_input_done(const size_t i)
{
- const bool available = this->input_queues.ready(i) and not this->input_queues.empty(i);
- return this->inputs_done[i] and not available;
+ return this->inputs_done[i] and not this->inputs_available[i];
}
GRAS_FORCE_INLINE bool is_work_allowed(void)