summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authorTom Rondeau2012-01-01 21:36:47 -0500
committerTom Rondeau2012-01-01 21:36:47 -0500
commit230e11b80ccec9acf77c1da13230bc773dbbee28 (patch)
tree04698fb2e7764a9a26161dffae3c0e970d0c196e /gnuradio-core/src
parent9716da257dcc3acbbc7ff8d9d79c1bc52c85b874 (diff)
downloadgnuradio-230e11b80ccec9acf77c1da13230bc773dbbee28.tar.gz
gnuradio-230e11b80ccec9acf77c1da13230bc773dbbee28.tar.bz2
gnuradio-230e11b80ccec9acf77c1da13230bc773dbbee28.zip
scheduler: access to set max noutput_items in start method through Python.
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/top_block.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/top_block.py b/gnuradio-core/src/python/gnuradio/gr/top_block.py
index 1e36d3b48..f2d83893c 100644
--- a/gnuradio-core/src/python/gnuradio/gr/top_block.py
+++ b/gnuradio-core/src/python/gnuradio/gr/top_block.py
@@ -93,14 +93,14 @@ class top_block(object):
raise RuntimeError("top_block: invalid state--did you forget to call gr.top_block.__init__ in a derived class?")
return getattr(self._tb, name)
- def start(self):
- self._tb.start()
+ def start(self, max_noutput_items=100000):
+ self._tb.start(max_noutput_items)
def stop(self):
self._tb.stop()
- def run(self):
- self.start()
+ def run(self, max_noutput_items=100000):
+ self.start(max_noutput_items)
self.wait()
def wait(self):