diff options
author | Josh Blum <josh@joshknows.com> | 2013-05-23 00:22:03 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2013-05-23 00:22:03 -0700 |
commit | 44b81cad37d18fa5c67c651ae21de444f65a26a6 (patch) | |
tree | 9e2ecf25bb8c546b088f291a75be16804abcc4a1 /gnuradio-runtime/python/gnuradio/gr/top_block.py | |
parent | d54dd6cfeb00ad3670da31236191159035a82a77 (diff) |
runtime: exception safe python blocking top block calls
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/top_block.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/top_block.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/top_block.py b/gnuradio-runtime/python/gnuradio/gr/top_block.py index 944e95e5ae..e4d1f4194a 100644 --- a/gnuradio-runtime/python/gnuradio/gr/top_block.py +++ b/gnuradio-runtime/python/gnuradio/gr/top_block.py @@ -20,7 +20,8 @@ # from runtime_swig import top_block_swig, \ - top_block_wait_unlocked, top_block_run_unlocked + top_block_wait_unlocked, top_block_run_unlocked, \ + top_block_start_unlocked, top_block_stop_unlocked #import gnuradio.gr.gr_threading as _threading import gr_threading as _threading @@ -99,10 +100,10 @@ class top_block(object): return getattr(self._tb, name) def start(self, max_noutput_items=10000000): - self._tb.start(max_noutput_items) + top_block_start_unlocked(self._tb, max_noutput_items) def stop(self): - self._tb.stop() + top_block_stop_unlocked(self._tb) def run(self, max_noutput_items=10000000): self.start(max_noutput_items) |