summaryrefslogtreecommitdiff
path: root/lib/top_block.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-08-22 18:33:37 -0700
committerJosh Blum2012-08-26 16:03:51 -0700
commit963f04378fcf2693518ec4eeb43c67abb41e4cbf (patch)
treed7fec75e28a615960481de5a106370a56389df9a /lib/top_block.cpp
parent9245a625b6119143934adeb09a1782a4ed3d5b22 (diff)
downloadsandhi-963f04378fcf2693518ec4eeb43c67abb41e4cbf.tar.gz
sandhi-963f04378fcf2693518ec4eeb43c67abb41e4cbf.tar.bz2
sandhi-963f04378fcf2693518ec4eeb43c67abb41e4cbf.zip
runtime: fill in more top block hooks
Diffstat (limited to 'lib/top_block.cpp')
-rw-r--r--lib/top_block.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/top_block.cpp b/lib/top_block.cpp
index 268064e..62cc3d2 100644
--- a/lib/top_block.cpp
+++ b/lib/top_block.cpp
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with io_sig program. If not, see <http://www.gnu.org/licenses/>.
+#include "element_impl.hpp"
#include <gnuradio/top_block.hpp>
using namespace gnuradio;
@@ -26,25 +27,27 @@ TopBlock::TopBlock(void)
TopBlock::TopBlock(const std::string &name):
HierBlock(name)
{
- //TODO
+ tsbe::ExecutorConfig config;
+ config.topology = (*this)->topology;
+ (*this)->executor = tsbe::Executor(config);
}
void TopBlock::update(void)
{
-
+ (*this)->executor.update();
}
void TopBlock::start(void)
{
-
+ (*this)->executor.set_state(STATE_ACTIVE);
}
void TopBlock::stop(void)
{
-
+ (*this)->executor.set_state(STATE_INERT);
}
void TopBlock::wait(void)
{
-
+ //NOP/TODO?
}