Typed too fast adding lockers. Actually put them in a locker.

llvm-svn: 163575
This commit is contained in:
Jim Ingham 2012-09-11 00:08:52 +00:00
parent 1ded453e36
commit 45350374f1
1 changed files with 2 additions and 2 deletions
lldb/source/Plugins/Process/gdb-remote

View File

@ -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++)