[Lldb-commits] [PATCH] D46733: Add a lock to PlatformPOSIX::DoLoadImage

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 10 16:46:15 PDT 2018


clayborg requested changes to this revision.
clayborg added inline comments.
This revision now requires changes to proceed.


================
Comment at: source/Plugins/Platform/POSIX/PlatformPOSIX.cpp:1046-1047
+  {
+    static std::mutex do_dlopen_mutex;
+    std::lock_guard<std::mutex> lock(do_dlopen_mutex);
+
----------------
We should put the mutex, or better yet a std::once_flag, in the process as an instance variable. The utility function belongs to each process.


https://reviews.llvm.org/D46733





More information about the lldb-commits mailing list