summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-04-11 00:24:49 +0000
committerGreg Clayton <gclayton@apple.com>2012-04-11 00:24:49 +0000
commit37a0a24a5fdc05e18770661b4ee13a91893dee1a (patch)
tree52098bf87fb35019b5b41d9af33dd508739a8bfb /lldb/source/Breakpoint
parentad66de155bbdb01bc2e0ece769bf150203bd1a63 (diff)
downloadbcm5719-llvm-37a0a24a5fdc05e18770661b4ee13a91893dee1a.tar.gz
bcm5719-llvm-37a0a24a5fdc05e18770661b4ee13a91893dee1a.zip
No functionality changes, mostly cleanup.
Cleaned up the Mutex::Locker and the ReadWriteLock classes a bit. Also cleaned up the GDBRemoteCommunication class to not have so many packet functions. Used the "NoLock" versions of send/receive packet functions when possible for a bit of performance. llvm-svn: 154458
Diffstat (limited to 'lldb/source/Breakpoint')
-rw-r--r--lldb/source/Breakpoint/BreakpointList.cpp2
-rw-r--r--lldb/source/Breakpoint/WatchpointList.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Breakpoint/BreakpointList.cpp b/lldb/source/Breakpoint/BreakpointList.cpp
index 4c9fa065c5d..9ec6d8daec8 100644
--- a/lldb/source/Breakpoint/BreakpointList.cpp
+++ b/lldb/source/Breakpoint/BreakpointList.cpp
@@ -223,5 +223,5 @@ BreakpointList::ClearAllBreakpointSites ()
void
BreakpointList::GetListMutex (Mutex::Locker &locker)
{
- return locker.Reset (m_mutex.GetMutex());
+ return locker.Lock (m_mutex.GetMutex());
}
diff --git a/lldb/source/Breakpoint/WatchpointList.cpp b/lldb/source/Breakpoint/WatchpointList.cpp
index a3f2bbb57e5..f95265993ae 100644
--- a/lldb/source/Breakpoint/WatchpointList.cpp
+++ b/lldb/source/Breakpoint/WatchpointList.cpp
@@ -273,5 +273,5 @@ WatchpointList::RemoveAll ()
void
WatchpointList::GetListMutex (Mutex::Locker &locker)
{
- return locker.Reset (m_mutex.GetMutex());
+ return locker.Lock (m_mutex.GetMutex());
}
OpenPOWER on IntegriCloud