I am missing very much from the new standard the std::shared_lock
template class.
In Boost.Thread there is boost::shared_lock
, even boost::upgrade_lock
exists.
Why is that, there is no std::shared_lock and std::unique_lock
in C++11?
How is it possible to acquire a similar behavior as boost::shared_lock
has, but in pure C++11?
I was thinking to use boost::shared_lock<std::mutex>
, but this doesn't have so much sense, since std::mutex
does not have a lock_shared()
member. And also, there is no such as std::shared_mutex
.