mirror of https://github.com/acidanthera/audk.git
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
|
break
|
||||||
|
|
||||||
self.runningLock.acquire(True)
|
self.runningLock.acquire(True)
|
||||||
self.running.remove(threading.currentThread())
|
self.running.remove(threading.current_thread())
|
||||||
self.runningLock.release()
|
self.runningLock.release()
|
||||||
|
|
||||||
def Run():
|
def Run():
|
||||||
|
|
Loading…
Reference in New Issue