summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/top_block.py
diff options
context:
space:
mode:
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, 5 insertions, 3 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/top_block.py b/gnuradio-runtime/python/gnuradio/gr/top_block.py
index d44c6c46d4..b3cb06d41c 100644
--- a/gnuradio-runtime/python/gnuradio/gr/top_block.py
+++ b/gnuradio-runtime/python/gnuradio/gr/top_block.py
@@ -9,15 +9,16 @@
from .gr_python import (top_block_pb,
- top_block_wait_unlocked, top_block_run_unlocked,
- top_block_start_unlocked, top_block_stop_unlocked,
- top_block_unlock_unlocked) #, dot_graph_tb)
+ top_block_wait_unlocked, top_block_run_unlocked,
+ top_block_start_unlocked, top_block_stop_unlocked,
+ top_block_unlock_unlocked) # , dot_graph_tb)
from .hier_block2 import hier_block2
import threading
from .hier_block2 import hier_block2
+
class _top_block_waiter(threading.Thread):
"""
This kludge allows ^C to interrupt top_block.run and top_block.wait
@@ -41,6 +42,7 @@ class _top_block_waiter(threading.Thread):
See also top_block.wait (below), which uses this class to implement
the interruptible wait.
"""
+
def __init__(self, tb):
threading.Thread.__init__(self)
self.setDaemon(1)