fix broken ui Blinkenlights in multi-threaded mode
This is a regression introduced by commit d5493fe894
[threadutil: explicitly import get_ident from thread].
The threadid attribute was wrongly removed from the ExitNotifyThread class.
Restore it.
Tested-by: Mark Foxwell <fastfret79@archlinux.org.uk>
Reviewed-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
2d31abde76
commit
89a5d25263
@ -134,6 +134,7 @@ class ExitNotifyThread(Thread):
|
|||||||
exited and to provide for the ability for it to find out why."""
|
exited and to provide for the ability for it to find out why."""
|
||||||
def run(self):
|
def run(self):
|
||||||
global exitthreads, profiledir
|
global exitthreads, profiledir
|
||||||
|
self.threadid = get_ident()
|
||||||
try:
|
try:
|
||||||
if not profiledir: # normal case
|
if not profiledir: # normal case
|
||||||
Thread.run(self)
|
Thread.run(self)
|
||||||
@ -148,7 +149,7 @@ class ExitNotifyThread(Thread):
|
|||||||
except SystemExit:
|
except SystemExit:
|
||||||
pass
|
pass
|
||||||
prof.dump_stats( \
|
prof.dump_stats( \
|
||||||
profiledir + "/" + str(get_ident()) + "_" + \
|
profiledir + "/" + str(self.threadid) + "_" + \
|
||||||
self.getName() + ".prof")
|
self.getName() + ".prof")
|
||||||
except:
|
except:
|
||||||
self.setExitCause('EXCEPTION')
|
self.setExitCause('EXCEPTION')
|
||||||
|
Loading…
Reference in New Issue
Block a user