Make sure SectionLoadHistory::GetCurrentSectionLoadList () is thread safe.
<rdar://problem/15818525> llvm-svn: 209485
This commit is contained in:
parent
b73c973d3b
commit
e756aa3571
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue