From 44b81cad37d18fa5c67c651ae21de444f65a26a6 Mon Sep 17 00:00:00 2001
From: Josh Blum <josh@joshknows.com>
Date: Thu, 23 May 2013 00:22:03 -0700
Subject: runtime: exception safe python blocking top block calls

---
 gnuradio-runtime/python/gnuradio/gr/top_block.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'gnuradio-runtime/python/gnuradio/gr/top_block.py')

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)
-- 
cgit v1.2.3