Make sure SectionLoadHistory::GetCurrentSectionLoadList () is thread safe.

<rdar://problem/15818525>

llvm-svn: 209485
This commit is contained in:
Greg Clayton 2014-05-22 23:54:17 +00:00
parent b73c973d3b
commit e756aa3571
1 changed files with 1 additions and 0 deletions

View File

@ -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;