mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: C++ 17 added `std::scoped_lock`, which effectively supersedes `std::lock_guard`. See https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cp21-use-stdlock-or-stdscoped_lock-to-acquire-multiple-mutexes for why it was added. This diff replaces usages of `std::lock_guard` with `std::scoped_lock` and CTAD. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D48244308 fbshipit-source-id: d0a090d92c4c7276fdeea7fb1275900e5e0d3617