Hacker News new | ask | show | jobs
by ef47d35620c1 4513 days ago
C++11 has scoped locks built-in, doesn't it?
1 comments

It offers a variety of them, simplest of which is lock_guard:

http://en.cppreference.com/w/cpp/thread/lock_guard