Re:In the C++ bag of tricks: scoped locks
by s_kanev on Friday February 07, 2014 @01:11PM
(#7197721)
OP here. Totally agree. TIL about RAII.
That particular codebase doesn't use c++ exceptions, but still not a reason for a roll-your-own solution if something as efficient is in the standard library.
[ Parent
| on HN ]