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:
Rebecca Cran 2023-04-24 10:44:24 -06:00 committed by mergify[bot]
parent db7e6291c0
commit 11ec5161fa
1 changed files with 1 additions and 1 deletions

View File

@ -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():