Is there a C++11 equivalent for the boost::shared_mutex. Or another solution to handle a multiple reader / single writer situation in C++11?
boost::shared_mutex
I tried but failed to get shared_mutex into C++11. It has been proposed for a future standard. The proposal is here.
shared_mutex
Edit: A revised version (N3659) was accepted for C++14.
Here is an implementation:
http://howardhinnant.github.io/shared_mutex
http://howardhinnant.github.io/shared_mutex.cpp
1.4m articles
1.4m replys
5 comments
57.0k users