summaryrefslogtreecommitdiff
path: root/lib/block_handlers.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-08-30 01:46:53 -0700
committerJosh Blum2012-08-30 01:46:53 -0700
commitb7c89402efa81c0a744e8314ad7d328d997b30be (patch)
tree8474a7a67150b9c10be3b7b996d32c706bb419d0 /lib/block_handlers.cpp
parente661028006d0f36ad10672f4d0fa034c157e882d (diff)
downloadsandhi-b7c89402efa81c0a744e8314ad7d328d997b30be.tar.gz
sandhi-b7c89402efa81c0a744e8314ad7d328d997b30be.tar.bz2
sandhi-b7c89402efa81c0a744e8314ad7d328d997b30be.zip
insightful comments for insightful changesets (tomorrow)
Diffstat (limited to 'lib/block_handlers.cpp')
-rw-r--r--lib/block_handlers.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/block_handlers.cpp b/lib/block_handlers.cpp
index ab32300..95d4b8b 100644
--- a/lib/block_handlers.cpp
+++ b/lib/block_handlers.cpp
@@ -107,4 +107,16 @@ void ElementImpl::topology_update(const tsbe::TaskInterface &task_iface, const t
{
this->mark_done(task_iface);
}
+
+ //TODO: think more about this:
+ if (num_inputs == 0 and num_outputs == 0)
+ {
+ this->mark_done(task_iface);
+ }
+
+ //TODO: generate a message to handle task in a loop for a while
+ //we may need to call it into exhaustion to be correct
+ //but dont call it from update, let the settings above sink in
+ this->handle_task(task_iface);
+ this->handle_task(task_iface);
}