mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
BaseTools: use threading.current_thread in NmakeSubdirs.py
threading.currentThread is a deprecated alias for threading.current_thread, and causes a warning to be displayed when it's called. Update NmakeSubdirs.py to use the latter method instead. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
parent
db7e6291c0
commit
11ec5161fa
@ -132,7 +132,7 @@ class ThreadControl(object):
|
||||
break
|
||||
|
||||
self.runningLock.acquire(True)
|
||||
self.running.remove(threading.currentThread())
|
||||
self.running.remove(threading.current_thread())
|
||||
self.runningLock.release()
|
||||
|
||||
def Run():
|
||||
|
Loading…
x
Reference in New Issue
Block a user