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.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/top_block.py b/gnuradio-runtime/python/gnuradio/gr/top_block.py
index e7608bf5e9..afa9c3b986 100644
--- a/gnuradio-runtime/python/gnuradio/gr/top_block.py
+++ b/gnuradio-runtime/python/gnuradio/gr/top_block.py
@@ -27,12 +27,11 @@ from .runtime_swig import (top_block_swig,
top_block_start_unlocked, top_block_stop_unlocked,
top_block_unlock_unlocked, dot_graph_tb)
-#import gnuradio.gr.gr_threading as _threading
-from . import gr_threading as _threading
+import threading
from .hier_block2 import hier_block2
-class _top_block_waiter(_threading.Thread):
+class _top_block_waiter(threading.Thread):
"""
This kludge allows ^C to interrupt top_block.run and top_block.wait
@@ -56,10 +55,10 @@ class _top_block_waiter(_threading.Thread):
the interruptable wait.
"""
def __init__(self, tb):
- _threading.Thread.__init__(self)
+ threading.Thread.__init__(self)
self.setDaemon(1)
self.tb = tb
- self.event = _threading.Event()
+ self.event = threading.Event()
self.start()
def run(self):