cppreference std::scoped_lock C++17
If several mutexes are given, deadlock avoidance algorithm is used as if by std::lock.
NOTE:
最好使用 std::scoped_lock ,而不是 std::lock,这在 cppreference std::lock 中有说明
If several mutexes are given, deadlock avoidance algorithm is used as if by std::lock.
NOTE:
最好使用 std::scoped_lock ,而不是 std::lock,这在 cppreference std::lock 中有说明