[clang] [llvm] [clang][modules] Prevent deadlock in module cache (PR #182722)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 10 08:37:12 PDT 2026


================
@@ -13,14 +13,18 @@
 #include "llvm/ADT/StringMap.h"
 
 #include <atomic>
+#include <condition_variable>
 #include <mutex>
-#include <shared_mutex>
 
 namespace clang {
 namespace dependencies {
 
 struct ModuleCacheEntry {
-  std::shared_mutex CompilationMutex;
+  std::mutex Mutex;
----------------
shafik wrote:

ping, I think this got overshadowed by the other conversation

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


More information about the cfe-commits mailing list