summaryrefslogtreecommitdiff
path: root/lib/top_block.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-10-04 20:49:41 -0700
committerJosh Blum2012-10-04 20:49:41 -0700
commit47985be7403d16049d166ea1da4a94870c2c9606 (patch)
tree977f63e7e919b60df307baa24f5249a525f6d84e /lib/top_block.cpp
parentd9aad55eb18f8a9dab383a0b0cb8626f12c3fd29 (diff)
downloadsandhi-47985be7403d16049d166ea1da4a94870c2c9606.tar.gz
sandhi-47985be7403d16049d166ea1da4a94870c2c9606.tar.bz2
sandhi-47985be7403d16049d166ea1da4a94870c2c9606.zip
replaced top block set_buffer_hint with global config
Diffstat (limited to 'lib/top_block.cpp')
-rw-r--r--lib/top_block.cpp14
1 files changed, 6 insertions, 8 deletions
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();