From: Rebecca Cran Date: Mon, 24 Apr 2023 16:44:24 +0000 (-0600) Subject: BaseTools: use threading.current_thread in NmakeSubdirs.py X-Git-Tag: edk2-stable202305~42 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=11ec5161fa6ed177b51b6c310696b0179aff53f3;p=ovmf.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 Reviewed-by: Liming Gao --- 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():