by amadvance · 3y ago · 0 comments
Another potential disadvantage, is that you lose the possibility to control the unlock order, when you have multiple nested locks.
std::scoped_lock allows locking multiple locks.