summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2023-04-24 10:44:24 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-05-08 19:03:18 +0000
commit11ec5161fa6ed177b51b6c310696b0179aff53f3 (patch)
treed4c29631d213921c481bab4e1a0db6a273bb04c2
parentdb7e6291c05a4c6db5c8bbf51fe5d58fe52ccc7d (diff)
downloadedk2-11ec5161fa6ed177b51b6c310696b0179aff53f3.tar.gz
edk2-11ec5161fa6ed177b51b6c310696b0179aff53f3.tar.bz2
edk2-11ec5161fa6ed177b51b6c310696b0179aff53f3.zip
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>
-rw-r--r--BaseTools/Source/C/Makefiles/NmakeSubdirs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/Makefiles/NmakeSubdirs.py b/BaseTools/Source/C/Makefiles/NmakeSubdirs.py
index 1f4a45004f..7860c040af 100644
--- a/BaseTools/Source/C/Makefiles/NmakeSubdirs.py
+++ b/BaseTools/Source/C/Makefiles/NmakeSubdirs.py
@@ -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():