diff options
author | Marcus Müller <marcus.mueller@ettus.com> | 2018-11-04 18:44:10 +0100 |
---|---|---|
committer | Andrej Rode <mail@andrejro.de> | 2018-11-12 12:30:42 +0100 |
commit | 9def7b29897e137f4936fbbaaae990910c0913a1 (patch) | |
tree | 0caefef7e2c8a355471b77bff0ad0a4dbe167c65 /gnuradio-runtime/python/gnuradio/gr/top_block.py | |
parent | b1e0b54d02bb981eba734ea29174e6134950dde6 (diff) |
runtime: gr_threading clutch obsolete; remove it and its usage
We essentially monkeypatched Python's `threading` module inelegantly to
get around shortcomings in Python 2.3 and 2.4.
Since support for these versions is long gone: removal of this clutch
and its usage.
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/top_block.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/top_block.py | 9 |
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): |