summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-09-10 20:50:15 +0000
committerJim Ingham <jingham@apple.com>2012-09-10 20:50:15 +0000
commit41f2b940c974b0ef7082a638cd23f128e167e8d1 (patch)
tree5c6eb0f38531bfe13996f7c78eb6d8b47f12cc4d /lldb/source/Target/Process.cpp
parent7acbf00f969095bf517bd5b234f634d6c56d085c (diff)
downloadbcm5719-llvm-41f2b940c974b0ef7082a638cd23f128e167e8d1.tar.gz
bcm5719-llvm-41f2b940c974b0ef7082a638cd23f128e167e8d1.zip
Fixed a few places where we were doing:
uint32_t size = ThreadList.GetSize(); for (i=0; i < size; ++i) without grabbing the thread list mutex. llvm-svn: 163541
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 918f98c369c..da537adabf8 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -4860,6 +4860,7 @@ Process::GetThreadStatus (Stream &strm,
{
size_t num_thread_infos_dumped = 0;
+ Mutex::Locker locker (GetThreadList().GetMutex());
const size_t num_threads = GetThreadList().GetSize();
for (uint32_t i = 0; i < num_threads; i++)
{
OpenPOWER on IntegriCloud