r/cpp • u/TheCrush0r • Apr 30 '26
Safe Optimistic Lock Coupling
https://databasearchitects.blogspot.com/2026/04/safe-optimistic-lock-coupling.html
9
Upvotes
r/cpp • u/TheCrush0r • Apr 30 '26
2
u/usefulcat May 01 '26
This code has a bug. At the call to currentLock->unlock() at the end, currentLock may be null.