diff options
Diffstat (limited to 'include/gnuradio')
-rw-r--r-- | include/gnuradio/gr_top_block.h | 12 | ||||
-rw-r--r-- | include/gnuradio/top_block.hpp | 2 |
2 files changed, 12 insertions, 2 deletions
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); |