Lock the Platform mutex in PlatformDarwin::GetDeveloperDirectory().
authorGreg Clayton <gclayton@apple.com>
Mon, 2 Feb 2015 21:18:46 +0000 (21:18 +0000)
committerGreg Clayton <gclayton@apple.com>
Mon, 2 Feb 2015 21:18:46 +0000 (21:18 +0000)
Partial fix for: <rdar://problem/19575304>

llvm-svn: 227863

lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp

index 5966466..14d1573 100644 (file)
@@ -987,6 +987,7 @@ PlatformDarwin::ARMGetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch
 const char *
 PlatformDarwin::GetDeveloperDirectory()
 {
+    Mutex::Locker locker (m_mutex);
     if (m_developer_directory.empty())
     {
         bool developer_dir_path_valid = false;