From e756aa35717fb67d524cee3a95c006d3c4439db1 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 22 May 2014 23:54:17 +0000 Subject: [PATCH] Make sure SectionLoadHistory::GetCurrentSectionLoadList () is thread safe. llvm-svn: 209485 --- lldb/source/Target/SectionLoadHistory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/source/Target/SectionLoadHistory.cpp b/lldb/source/Target/SectionLoadHistory.cpp index 527614e..1e5ade7 100644 --- a/lldb/source/Target/SectionLoadHistory.cpp +++ b/lldb/source/Target/SectionLoadHistory.cpp @@ -108,6 +108,7 @@ SectionLoadList & SectionLoadHistory::GetCurrentSectionLoadList () { const bool read_only = true; + Mutex::Locker locker(m_mutex); SectionLoadList *section_load_list = GetSectionLoadListForStopID (eStopIDNow, read_only); assert(section_load_list != NULL); return *section_load_list; -- 2.7.4