Use the multi-lockable form of std::lock for operator=
authorJim Ingham <jingham@apple.com>
Fri, 29 Mar 2019 17:07:30 +0000 (17:07 +0000)
committerJim Ingham <jingham@apple.com>
Fri, 29 Mar 2019 17:07:30 +0000 (17:07 +0000)
commitcdd4892f12e860905565f4e4444d7726618f89bd
treec0dc087dd800b84beea1df1c2cb533bdecd83c06
parentdd0c7d88c6c52ffd7e346497cf36dc13f6ce6766
Use the multi-lockable form of std::lock for operator=

For = operators for lists that have mutexes, we were either
just taking the locks sequentially or hand-rolling a trick
to try to avoid lock inversion.  Use the std::lock mechanism
for this instead.

Differential Revision: https://reviews.llvm.org/D59957

llvm-svn: 357276
lldb/include/lldb/Core/ModuleSpec.h
lldb/include/lldb/Utility/StreamTee.h
lldb/source/Breakpoint/BreakpointLocationCollection.cpp
lldb/source/Core/ModuleList.cpp
lldb/source/Target/SectionLoadList.cpp
lldb/source/Target/ThreadList.cpp