{"width":"100%","title":" C++14 \u5171\u6709\u30ed\u30c3\u30af","published":"2013-11-18 15:05:54","type":"rich","blog_url":"https://faithandbrave.hateblo.jp/","url":"https://faithandbrave.hateblo.jp/entry/20131118/1384754754","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","description":"N3659 Shared locking in C++ (Revision 2) C++14\u3067\u306f\u3001\u65b0\u305f\u306b\u30d8\u30c3\u30c0\u304c\u8ffd\u52a0\u3055\u308c\u3001multiple-readers / single-writer\u30d1\u30bf\u30fc\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306e\u3001\u5171\u6709\u30ed\u30c3\u30af\u306e\u6a5f\u80fd\u304c\u5165\u308a\u307e\u3059\u3002 \u66f8\u304d\u8fbc\u307f\u306b\u6bd4\u3079\u3066\u8aad\u307f\u8fbc\u307f\u304c\u591a\u3044\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002 shared_mutex mtx; void reader() { shared_lock<shared_mutex> lock(mtx); // mtx.lock_shared()\u304c\u547c\u3070\u308c\u308b // ... \u5171\u6709\u30c7\u30fc\u30bf\u304b\u3089\u306e\u8aad\u307f\u8fbc\u307f\u30a2\u30af\u30bb\u30b9 ... } // mtx.unlock_shared()\u304c\u547c\u3070\u2026","categories":["C++"],"height":"190","image_url":null,"author_url":"https://blog.hatena.ne.jp/faith_and_brave/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20131118%2F1384754754\" title=\" C++14 \u5171\u6709\u30ed\u30c3\u30af - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"faith_and_brave","version":"1.0","provider_name":"Hatena Blog","provider_url":"https://hatena.blog"}