summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block.cc4
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_top_block.cc b/gnuradio-core/src/lib/runtime/gr_top_block.cc
index 55e4bb895..56d1352cd 100644
--- a/gnuradio-core/src/lib/runtime/gr_top_block.cc
+++ b/gnuradio-core/src/lib/runtime/gr_top_block.cc
@@ -72,9 +72,9 @@ gr_top_block::wait()
}
void
-gr_top_block::run()
+gr_top_block::run(int max_noutput_items)
{
- start();
+ start(max_noutput_items);
wait();
}
diff --git a/gnuradio-core/src/lib/runtime/gr_top_block.h b/gnuradio-core/src/lib/runtime/gr_top_block.h
index f01372fc2..9d01ba3ef 100644
--- a/gnuradio-core/src/lib/runtime/gr_top_block.h
+++ b/gnuradio-core/src/lib/runtime/gr_top_block.h
@@ -53,8 +53,12 @@ public:
*
* Calls start() then wait(). Used to run a flowgraph that will stop
* on its own, or when another thread will call stop().
+ *
+ * \param max_noutput_items the maximum number of output items
+ * allowed for any block in the flowgraph. This passes through to
+ * the start function; see that function for more details.
*/
- void run();
+ void run(int max_noutput_items=100000);
/*!
* Start the contained flowgraph. Creates one or more threads to