[llvm] [Offload] Make olLaunchKernel test thread safe (PR #149497)

Kevin Sala Penades via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 22:12:54 PDT 2025


================
@@ -104,6 +119,7 @@ struct AsyncInfoWrapperTy {
   /// Register \p Ptr as an associated allocation that is freed after
   /// finalization.
   void freeAllocationAfterSynchronization(void *Ptr) {
+    std::lock_guard<std::mutex> AllocationGuard{AsyncInfoPtr->Mutex};
----------------
kevinsala wrote:

Still some instances with the `{...}` syntax. I think you have another one in the code.

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


More information about the llvm-commits mailing list