diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 37a731d..550c5a3 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -13571,12 +13571,12 @@ This is asking for deadlock: Instead, use `lock()`: // thread 1 - lock(lck1, lck2); + lock(m1, m2); lock_guard lck1(m1, adopt_lock); lock_guard lck2(m2, adopt_lock); // thread 2 - lock(lck2, lck1); + lock(m2, m1); lock_guard lck2(m2, adopt_lock); lock_guard lck1(m1, adopt_lock);