fix to run with python3-prctl
This commit is contained in:
parent
3f808fbcd7
commit
af52f80c71
|
@ -32,13 +32,6 @@ else:
|
||||||
"""Set the thread name for external use (visible from the OS)."""
|
"""Set the thread name for external use (visible from the OS)."""
|
||||||
prctl.set_name(name)
|
prctl.set_name(name)
|
||||||
|
|
||||||
def _thread_name_hack(self):
|
|
||||||
set_thread_name(self.name)
|
|
||||||
threading.Thread.__bootstrap_original__(self)
|
|
||||||
# pylint: disable=protected-access
|
|
||||||
threading.Thread.__bootstrap_original__ = threading.Thread._Thread__bootstrap
|
|
||||||
threading.Thread._Thread__bootstrap = _thread_name_hack
|
|
||||||
|
|
||||||
|
|
||||||
printLock = threading.Lock()
|
printLock = threading.Lock()
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user