|
|
|
|
|
by amadvance
1168 days ago
|
|
It's obviously subjective, but it looks like as any other indented block. Named "lock" and "unlock" operations are more explicit to me. 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.