summaryrefslogtreecommitdiff
path: root/lib/input_handlers.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-10-04 19:29:07 -0700
committerJosh Blum2012-10-04 19:29:07 -0700
commit80ad97851736b0ebaba0347480e8cbcadd2f4ada (patch)
tree537889171e89775e22d9949820fef3f1b2a6de8f /lib/input_handlers.cpp
parent4435b47e562ee8472d45d1d3a6016bc516d22322 (diff)
downloadsandhi-80ad97851736b0ebaba0347480e8cbcadd2f4ada.tar.gz
sandhi-80ad97851736b0ebaba0347480e8cbcadd2f4ada.tar.bz2
sandhi-80ad97851736b0ebaba0347480e8cbcadd2f4ada.zip
created any_inputs_done logic for done logic
Diffstat (limited to 'lib/input_handlers.cpp')
-rw-r--r--lib/input_handlers.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/input_handlers.cpp b/lib/input_handlers.cpp
index 8d778f1..574aee4 100644
--- a/lib/input_handlers.cpp
+++ b/lib/input_handlers.cpp
@@ -56,13 +56,9 @@ void BlockActor::handle_input_check(const InputCheckMessage &message, const Ther
//an upstream block declared itself done, recheck the token
this->inputs_done.set(index, this->input_tokens[index].unique());
-
- if (this->inputs_done.all()) //no upstream providers
+ if (this->any_inputs_done()) //missing an upstream provider
{
- if (not this->input_queues.all_ready())
- {
- this->mark_done();
- }
+ this->mark_done();
}
}