]> xenbits.xensource.com Git - ovmf.git/commitdiff
BaseTools: use threading.current_thread in NmakeSubdirs.py
authorRebecca Cran <rebecca@bsdio.com>
Mon, 24 Apr 2023 16:44:24 +0000 (10:44 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 8 May 2023 19:03:18 +0000 (19:03 +0000)
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>
BaseTools/Source/C/Makefiles/NmakeSubdirs.py

index 1f4a45004f4b8639926f3f347d3e7bd6bfa6d7ca..7860c040afa0520b598d46dd3f5410852dd6a1e2 100644 (file)
@@ -132,7 +132,7 @@ class ThreadControl(object):
                 break\r
 \r
         self.runningLock.acquire(True)\r
-        self.running.remove(threading.currentThread())\r
+        self.running.remove(threading.current_thread())\r
         self.runningLock.release()\r
 \r
 def Run():\r