From 709f8e97cc642e446d357612a6d6512d5a4c5330 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 4 Oct 2012 21:15:11 -0700 Subject: implementation for the top block global config --- include/gnuradio/gr_top_block.h | 12 +++++++++++- include/gnuradio/top_block.hpp | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'include/gnuradio') diff --git a/include/gnuradio/gr_top_block.h b/include/gnuradio/gr_top_block.h index 3a56bf6..0fa5496 100644 --- a/include/gnuradio/gr_top_block.h +++ b/include/gnuradio/gr_top_block.h @@ -34,7 +34,12 @@ struct GRAS_API gr_top_block : gnuradio::TopBlock void unlock(void) { - this->update(); + this->commit(); + } + + void start(void) + { + gnuradio::TopBlock::start(); } void start(const size_t max_items) @@ -43,6 +48,11 @@ struct GRAS_API gr_top_block : gnuradio::TopBlock gnuradio::TopBlock::start(); } + void run(void) + { + gnuradio::TopBlock::run(); + } + void run(const size_t max_items) { this->set_max_noutput_items(max_items); diff --git a/include/gnuradio/top_block.hpp b/include/gnuradio/top_block.hpp index bab67ee..19daafc 100644 --- a/include/gnuradio/top_block.hpp +++ b/include/gnuradio/top_block.hpp @@ -42,7 +42,7 @@ struct GRAS_API TopBlock : HierBlock TopBlock(const std::string &name); //! Get the global block config settings - const GlobalBlockConfig &global_config(void) const; + GlobalBlockConfig global_config(void) const; //! Set the global block config settings void set_global_config(const GlobalBlockConfig &config); -- cgit