summaryrefslogtreecommitdiff
path: root/lib/gras_impl/block_actor.hpp
diff options
context:
space:
mode:
authorJosh Blum2012-10-04 20:09:59 -0700
committerJosh Blum2012-10-04 20:09:59 -0700
commit12170824b70fa127fe8ed0ac1b81c627c06bd851 (patch)
treecbe9c7a79c09ff23eda48ff62151924b820d27c8 /lib/gras_impl/block_actor.hpp
parentd889b683cd36d5ec679fcfcc35e3ebd731846abb (diff)
parent3b26ff66074621c1fd1dc26b616ec1583c2fb024 (diff)
downloadsandhi-12170824b70fa127fe8ed0ac1b81c627c06bd851.tar.gz
sandhi-12170824b70fa127fe8ed0ac1b81c627c06bd851.tar.bz2
sandhi-12170824b70fa127fe8ed0ac1b81c627c06bd851.zip
Merge branch 'master' into port_config
Diffstat (limited to 'lib/gras_impl/block_actor.hpp')
-rw-r--r--lib/gras_impl/block_actor.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gras_impl/block_actor.hpp b/lib/gras_impl/block_actor.hpp
index 14bfacc..e3e8463 100644
--- a/lib/gras_impl/block_actor.hpp
+++ b/lib/gras_impl/block_actor.hpp
@@ -110,6 +110,11 @@ struct BlockActor : Apology::Worker
void sort_tags(const size_t index);
void trim_tags(const size_t index);
void conclusion(void);
+ 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();
+ }
//per port properties
std::vector<size_t> input_items_sizes;
@@ -157,6 +162,7 @@ struct BlockActor : Apology::Worker
Block::tag_propagation_policy_t tag_prop_policy;
//interruptible thread stuff
+ bool interruptible_work;
SharedThreadGroup thread_group;
boost::shared_ptr<InterruptibleThread> interruptible_thread;