summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-11-07 16:25:01 +0000
committerEnrico Granata <egranata@apple.com>2016-11-07 16:25:01 +0000
commit3949cb61a5dabe2bdd84d91e4b26e2f242a48c4d (patch)
tree7e37c5b9a54a3e443339ffd63861fd67813c9d1d /lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp
parent50fed0475f13e0a5868e25cc29746ac3fa32efbd (diff)
downloadbcm5719-llvm-3949cb61a5dabe2bdd84d91e4b26e2f242a48c4d.tar.gz
bcm5719-llvm-3949cb61a5dabe2bdd84d91e4b26e2f242a48c4d.zip
Fix an issue where LLDB would hang trying to launch tvOS simulator binaries
llvm-svn: 286116
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp4
1 files changed, 2 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) {
OpenPOWER on IntegriCloud