summaryrefslogtreecommitdiff
path: root/lib/block_handlers.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-09-22 17:49:52 -0400
committerJosh Blum2012-09-22 17:49:52 -0400
commita76963ab6fdde4bf793ecb38f95fa6255647288a (patch)
tree9dc44a50a830f7d3d76ea11f7cac9ae4aef558b0 /lib/block_handlers.cpp
parent89de2759ba95682f51865dd06b7509e48969dc96 (diff)
downloadsandhi-a76963ab6fdde4bf793ecb38f95fa6255647288a.tar.gz
sandhi-a76963ab6fdde4bf793ecb38f95fa6255647288a.tar.bz2
sandhi-a76963ab6fdde4bf793ecb38f95fa6255647288a.zip
threading related tweaks for happy qa code
Diffstat (limited to 'lib/block_handlers.cpp')
-rw-r--r--lib/block_handlers.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/block_handlers.cpp b/lib/block_handlers.cpp
index a3a42b6..384deaa 100644
--- a/lib/block_handlers.cpp
+++ b/lib/block_handlers.cpp
@@ -85,6 +85,10 @@ void ElementImpl::handle_block_msg(
ASSERT(msg.type() == typeid(TopBlockMessage));
+ //FIXME leave the marked done blocks done...
+ //this helps QA tests to pass that re-use top block without diconnecting the old design
+ if (this->block_state == BLOCK_STATE_DONE) return;
+
const size_t num_inputs = task_iface.get_num_inputs();
const size_t num_outputs = task_iface.get_num_outputs();