HomePhabricator

Use the multi-lockable form of std::lock for operator=

Description

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

Details

Committed
jinghamMar 29 2019, 10:07 AM
Differential Revision
D59957: Convert = operators that take object mutexes to the multi-lock version of std::lock
Branches
Unknown
Tags
Unknown