summaryrefslogtreecommitdiff
path: root/lib/gras_impl/block_actor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gras_impl/block_actor.hpp')
-rw-r--r--lib/gras_impl/block_actor.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/gras_impl/block_actor.hpp b/lib/gras_impl/block_actor.hpp
index 023011d..4fe6359 100644
--- a/lib/gras_impl/block_actor.hpp
+++ b/lib/gras_impl/block_actor.hpp
@@ -114,7 +114,14 @@ struct BlockActor : Apology::Worker
GRAS_FORCE_INLINE bool any_inputs_done(void)
{
if (this->inputs_done.none()) return false;
- return ((~this->input_queues.ready_bitset()) & this->inputs_done).any();
+ for (size_t i = 0; i < this->get_num_inputs(); i++)
+ {
+ if (this->inputs_done[i] and not this->input_queues.ready(i))
+ {
+ return true;
+ }
+ }
+ return false;
}
//per port properties