summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/top_block.py
diff options
context:
space:
mode:
authorJiří Pinkava <j-pi@seznam.cz>2015-03-12 08:54:22 +0100
committerJiří Pinkava <j-pi@seznam.cz>2015-04-01 14:35:17 +0200
commit7b7c3363afbb97e6641b469d2bea69941a24839c (patch)
treecf2dcff23222512a189af34f57ee0ad51cd53f74 /gnuradio-runtime/python/gnuradio/gr/top_block.py
parent43065a682bedd353124bccc1f059d49d27b1cf91 (diff)
runtime: fix deadlock in unlock() from Python #594
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/top_block.py')
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/top_block.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/top_block.py b/gnuradio-runtime/python/gnuradio/gr/top_block.py
index f9872fc114..f449d98489 100644
--- a/gnuradio-runtime/python/gnuradio/gr/top_block.py
+++ b/gnuradio-runtime/python/gnuradio/gr/top_block.py
@@ -22,7 +22,7 @@
from runtime_swig import top_block_swig, \
top_block_wait_unlocked, top_block_run_unlocked, \
top_block_start_unlocked, top_block_stop_unlocked, \
- dot_graph_tb
+ top_block_unlock_unlocked, dot_graph_tb
#import gnuradio.gr.gr_threading as _threading
import gr_threading as _threading
@@ -118,6 +118,12 @@ class top_block(hier_block2):
self.start(max_noutput_items)
self.wait()
+ def unlock(self):
+ """
+ Release lock and continue execution of flow-graph.
+ """
+ top_block_unlock_unlocked(self._impl)
+
def wait(self):
"""
Wait for the flowgraph to finish running