C ++ 11相当于提高shared_mutex [英] C++11 equivalent to boost shared_mutex
本文介绍了C ++ 11相当于提高shared_mutex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有C ++ 11等价的的boost :: shared_mutex
。或另一种解决方案来处理在多读/写单情况C ++ 11?
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?
推荐答案
我尝试,但未能获得 shared_mutex
进入C ++ 11。已经提出了一个未来的标准。该提案是这里。
I tried but failed to get shared_mutex
into C++11. It has been proposed for a future standard. The proposal is here.
修改:修订版(N3659)被接受对于C ++ 14。
Edit: A revised version (N3659) was accepted for C++14.
下面是一个实现:
<一个href=\"http://howardhinnant.github.io/shared_mutex\">http://howardhinnant.github.io/shared_mutex
<一个href=\"http://howardhinnant.github.io/shared_mutex.cpp\">http://howardhinnant.github.io/shared_mutex.cpp
这篇关于C ++ 11相当于提高shared_mutex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文