[clang-tools-extra] [NFC] Avoid data race condition. (PR #118664)

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 10 05:30:09 PST 2024


================
@@ -501,6 +501,7 @@ class PreambleThread {
       }
 
       {
+        std::unique_lock<std::mutex> Lock(Mutex);
         WithContext Guard(std::move(CurrentReq->Ctx));
----------------
zahiraam wrote:

Thanks @tahonermann. I had forgotten about it. Closing it.

https://github.com/llvm/llvm-project/pull/118664


More information about the cfe-commits mailing list