cpp_weekly icon indicating copy to clipboard operation
cpp_weekly copied to clipboard

Prefer C++17's scoped_lock

Open lefticus opened this issue 6 months ago • 0 comments

If you must do manual mutex locking - prefer this:

https://en.cppreference.com/w/cpp/thread/scoped_lock

(but prefer higher level constructs)

lefticus avatar May 06 '25 00:05 lefticus