Be sure to take the mutex when the destructor is called in case other threads are using these lists and those other threads have the mutex locked.

llvm-svn: 178262
This commit is contained in:
Greg Clayton 2013-03-28 18:41:44 +00:00
parent efd98385c0
commit ca5ce187fa
2 changed files with 6 additions and 0 deletions
lldb
include/lldb/Target
source/Target

View File

@ -38,6 +38,9 @@ public:
~SectionLoadList()
{
// Call clear since this takes a lock and clears the section load list
// in case another thread is currently using this section load list
Clear();
}
bool

View File

@ -65,6 +65,9 @@ StackFrameList::StackFrameList
//----------------------------------------------------------------------
StackFrameList::~StackFrameList()
{
// Call clear since this takes a lock and clears the stack frame list
// in case another thread is currently using this stack frame list
Clear();
}
void