From 47985be7403d16049d166ea1da4a94870c2c9606 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 4 Oct 2012 20:49:41 -0700 Subject: replaced top block set_buffer_hint with global config --- lib/top_block.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'lib/top_block.cpp') diff --git a/lib/top_block.cpp b/lib/top_block.cpp index f5d4517..c93bda5 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -20,6 +20,11 @@ using namespace gnuradio; +GlobalBlockConfig::GlobalBlockConfig(void) +{ + maximum_output_items = 0; +} + TopBlock::TopBlock(void) { //NOP @@ -48,18 +53,11 @@ void ElementImpl::top_block_cleanup(void) << std::flush; } -void TopBlock::update(void) +void TopBlock::commit(void) { this->start(); //ok to re-start, means update } -void TopBlock::set_buffer_hint(const size_t hint) -{ - TopHintMessage message; - message.hint = hint; - (*this)->executor->post_all(message); -} - void TopBlock::start(void) { (*this)->executor->commit(); -- cgit