News for hackers. Stuff that matters.
Re:In the C++ bag of tricks: scoped locks by jacobparker on Friday February 07, 2014 @01:01PM (#7197656)
Exception issues aside, an odd definition of "scoped". A very non-C++ solution. Use RAII and lock_guard (if possible) as vinkelhake demonstrates. Consider,

    LOCKED(lk_var) {
        return 42; // whoops
    }

There are no comments on this comment yet.