diff options
author | Josh Blum | 2013-03-29 02:02:17 -0700 |
---|---|---|
committer | Josh Blum | 2013-03-29 02:02:17 -0700 |
commit | f66540d088d46ef4e52367ad083573e557e4cab5 (patch) | |
tree | 7926db018eac0f82c37f90292d346388c10cf1c6 | |
parent | cb93ca52e8768a8b53ff5576c41b29a3144793f1 (diff) | |
download | sandhi-f66540d088d46ef4e52367ad083573e557e4cab5.tar.gz sandhi-f66540d088d46ef4e52367ad083573e557e4cab5.tar.bz2 sandhi-f66540d088d46ef4e52367ad083573e557e4cab5.zip |
gras: reuse inputs_available for done logic
m--------- | grextras | 0 | ||||
-rw-r--r-- | lib/gras_impl/block_actor.hpp | 3 |
2 files changed, 1 insertions, 2 deletions
diff --git a/grextras b/grextras -Subproject a3b79c7c7f77436a2757afef053d55ed0405c67 +Subproject 8bf9d4879128dd8c881bf3739f99dcb089a6a56 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) |