diff options
author | Tom Rondeau | 2012-01-02 19:50:35 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-01-02 19:50:35 -0500 |
commit | 0644c4bf65b35b6494553cd75623f65e8e4a4ba3 (patch) | |
tree | 651ac8692997ed50cca12b4260f1f6e15c76fe30 /gnuradio-core | |
parent | 10d65867b80f796da27c82443734cc20e99b672e (diff) | |
download | gnuradio-0644c4bf65b35b6494553cd75623f65e8e4a4ba3.tar.gz gnuradio-0644c4bf65b35b6494553cd75623f65e8e4a4ba3.tar.bz2 gnuradio-0644c4bf65b35b6494553cd75623f65e8e4a4ba3.zip |
scheduler: add default (large) max noutput_items to C++ run function.
Diffstat (limited to 'gnuradio-core')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_top_block.cc | 4 | ||||
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_top_block.h | 6 |
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 |