summaryrefslogtreecommitdiff
path: root/lib/block_task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/block_task.cpp')
-rw-r--r--lib/block_task.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/block_task.cpp b/lib/block_task.cpp
index 87d0c8a..21986fc 100644
--- a/lib/block_task.cpp
+++ b/lib/block_task.cpp
@@ -36,6 +36,13 @@ void BlockActor::mark_done(void)
this->input_queues.flush_all();
this->output_queues.flush_all();
+ //release all tags and msgs
+ for (size_t i = 0; i < this->get_num_inputs(); i++)
+ {
+ this->input_msgs[i].clear();
+ this->input_tags[i].clear();
+ }
+
//tell the upstream and downstram to re-check their tokens
//this is how the other blocks know who is interested,
//and can decide based on interest to set done or not