commit | 516f0849819d094d4eab39a1f27b770259103ff8 | [log] [tgz] |
---|---|---|
author | Greg Clayton <gclayton@apple.com> | Wed Apr 11 00:24:49 2012 +0000 |
committer | Greg Clayton <gclayton@apple.com> | Wed Apr 11 00:24:49 2012 +0000 |
tree | ac6dc2be62972a564df93f186818cc9758b317b5 | |
parent | b94dc8753be1c8da220ecf99cdbc75d2071d251a [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@154458 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp b/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp index 8fc3692..c1d9f95 100644 --- a/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp +++ b/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
@@ -151,7 +151,7 @@ } bool -CommunicationKDP::TryLockSequenceMutex (Mutex::Locker& locker) +CommunicationKDP::GetSequenceMutex (Mutex::Locker& locker) { return locker.TryLock (m_sequence_mutex.GetMutex()); }
diff --git a/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h b/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h index 728cddd..db1e02f 100644 --- a/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h +++ b/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
@@ -102,7 +102,7 @@ uint32_t usec); bool - TryLockSequenceMutex(lldb_private::Mutex::Locker& locker); + GetSequenceMutex(lldb_private::Mutex::Locker& locker); bool CheckForPacket (const uint8_t *src,