Hacker News new | ask | show | jobs
by lunfard000 1171 days ago
maybe add SerenityOS to the title? Almost sure that lock_guard is the ideomatic way to do this on cpp, not buying the "forget to lock".
2 comments

It’s a general C++ trick.
FWIW, I've encountered "forget to lock" in production C++.