C++17
The 2017 standard adds another set of features to the standard library, namely:
std::shared_mutex
std::scoped_lock
Here, a scoped lock is a mutex wrapper providing an RAII-style mechanism to own a mutex for the duration of a scoped block.
The 2017 standard adds another set of features to the standard library, namely:
std::shared_mutex
std::scoped_lock
Here, a scoped lock is a mutex wrapper providing an RAII-style mechanism to own a mutex for the duration of a scoped block.