forked from OSchip/llvm-project
Typed too fast adding lockers. Actually put them in a locker.
llvm-svn: 163575
This commit is contained in:
parent
1ded453e36
commit
45350374f1
lldb/source/Plugins/Process/gdb-remote
|
@ -1739,7 +1739,7 @@ ProcessGDBRemote::DoDestroy ()
|
|||
ThreadList &threads = GetThreadList();
|
||||
|
||||
{
|
||||
Mutex::Locker(threads.GetMutex());
|
||||
Mutex::Locker locker(threads.GetMutex());
|
||||
|
||||
size_t num_threads = threads.GetSize();
|
||||
for (size_t i = 0; i < num_threads; i++)
|
||||
|
@ -1774,7 +1774,7 @@ ProcessGDBRemote::DoDestroy ()
|
|||
// have to run the risk of letting those threads proceed a bit.
|
||||
|
||||
{
|
||||
Mutex::Locker(threads.GetMutex());
|
||||
Mutex::Locker locker(threads.GetMutex());
|
||||
|
||||
size_t num_threads = threads.GetSize();
|
||||
for (size_t i = 0; i < num_threads; i++)
|
||||
|
|
Loading…
Reference in New Issue