diff options
author | Jim Ingham <jingham@apple.com> | 2012-05-04 23:02:50 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-05-04 23:02:50 +0000 |
commit | 10ebffa48a592e2e03b2e8478b03ccdd0e8da2d5 (patch) | |
tree | 32f9eceb84a66b9b7f0387d5b89ba089d5bb4fe1 /lldb/source/Breakpoint | |
parent | e326ed33a8135dca882a76128840a28c38a1e106 (diff) | |
download | bcm5719-llvm-10ebffa48a592e2e03b2e8478b03ccdd0e8da2d5.tar.gz bcm5719-llvm-10ebffa48a592e2e03b2e8478b03ccdd0e8da2d5.zip |
Don't expose the pthread_mutex_t underlying the Mutex & Mutex::Locker classes.
No one was using it and Locker(pthread_mutex_t *) immediately asserts for
pthread_mutex_t's that don't come from a Mutex anyway. Rather than try to make
that work, we should maintain the Mutex abstraction and not pass around the
platform implementation...
Make Mutex::Locker::Lock take a Mutex & or a Mutex *, and remove the constructor
taking a pthread_mutex_t *. You no longer need to call Mutex::GetMutex to pass
your mutex to a Locker (you can't in fact, since I made it private.)
llvm-svn: 156221
Diffstat (limited to 'lldb/source/Breakpoint')
-rw-r--r-- | lldb/source/Breakpoint/BreakpointList.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Breakpoint/WatchpointList.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Breakpoint/BreakpointList.cpp b/lldb/source/Breakpoint/BreakpointList.cpp index 9ec6d8daec8..e1aa2dbcb1e 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.Lock (m_mutex.GetMutex()); + return locker.Lock (m_mutex); } diff --git a/lldb/source/Breakpoint/WatchpointList.cpp b/lldb/source/Breakpoint/WatchpointList.cpp index f95265993ae..bfd0b4cdc5d 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.Lock (m_mutex.GetMutex()); + return locker.Lock (m_mutex); } |