diff options
author | Josh Blum | 2012-08-30 20:22:44 -0700 |
---|---|---|
committer | Josh Blum | 2012-08-30 20:22:44 -0700 |
commit | a648f0970230203f05a434dba903e6a4a5a08d53 (patch) | |
tree | 9e48ccac26a85dec161f2d8806bf5c1cf650e016 /lib/block_ports.cpp | |
parent | 44fb4c04d2ecda3f60fc4f7e31da64cce9ca7a6d (diff) | |
download | sandhi-a648f0970230203f05a434dba903e6a4a5a08d53.tar.gz sandhi-a648f0970230203f05a434dba903e6a4a5a08d53.tar.bz2 sandhi-a648f0970230203f05a434dba903e6a4a5a08d53.zip |
checking in small fixes and message work
Diffstat (limited to 'lib/block_ports.cpp')
-rw-r--r-- | lib/block_ports.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/block_ports.cpp b/lib/block_ports.cpp index 3b3aec6..58b3366 100644 --- a/lib/block_ports.cpp +++ b/lib/block_ports.cpp @@ -20,9 +20,11 @@ using namespace gnuradio; void ElementImpl::handle_input_msg(const tsbe::TaskInterface &handle, const size_t index, const tsbe::Wax &msg) { + std::cout << "handle_input_msg in " << name << std::endl; + if (msg.type() == typeid(tsbe::Buffer)) { - if (this->done) return; + if (this->block_state == BLOCK_STATE_DONE) return; this->input_queues[index].push(msg.cast<tsbe::Buffer>()); this->inputs_ready.set(index, true); this->handle_task(handle); @@ -51,9 +53,11 @@ void ElementImpl::handle_input_msg(const tsbe::TaskInterface &handle, const size void ElementImpl::handle_output_msg(const tsbe::TaskInterface &handle, const size_t index, const tsbe::Wax &msg) { + std::cout << "handle_output_msg in " << name << std::endl; + if (msg.type() == typeid(tsbe::Buffer)) { - if (this->done) return; + if (this->block_state == BLOCK_STATE_DONE) return; this->output_queues[index].push(msg.cast<tsbe::Buffer>()); this->outputs_ready.set(index, true); this->handle_task(handle); |