When should std::scoped_lock
be used over std::shared_lock
?
I don't think I understand the use of std::scoped_lock
.
Or, is std::scoped_lock
just a variant of std::unique_lock
for holding multiple mutexes?
Ref: "std::lock_guard or std::scoped_lock?"