diff options
| -rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp index 3ed81e6fff7..b5ab04c96c0 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp @@ -150,7 +150,7 @@ const char *PlatformAppleTVSimulator::GetDescriptionStatic() { /// Default Constructor //------------------------------------------------------------------ PlatformAppleTVSimulator::PlatformAppleTVSimulator() - : PlatformDarwin(true), m_sdk_directory() {} + : PlatformDarwin(true), m_sdk_dir_mutex(), m_sdk_directory() {} //------------------------------------------------------------------ /// Destructor. @@ -261,7 +261,7 @@ EnumerateDirectoryCallback(void *baton, FileSpec::FileType file_type, } const char *PlatformAppleTVSimulator::GetSDKDirectoryAsCString() { - std::lock_guard<std::mutex> guard(m_mutex); + std::lock_guard<std::mutex> guard(m_sdk_dir_mutex); if (m_sdk_directory.empty()) { const char *developer_dir = GetDeveloperDirectory(); if (developer_dir) { diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h index 887a98fea0c..311ba05d76a 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h @@ -86,6 +86,7 @@ public: } protected: + std::mutex m_sdk_dir_mutex; std::string m_sdk_directory; std::string m_build_update; |

