Typed too fast adding lockers. Actually put them in a locker.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@163575 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 26104e5..ce9d71b 100644
--- a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1739,7 +1739,7 @@
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 @@
// 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++)