{"height":"190","image_url":null,"author_name":"bsdhouse","author_url":"https://blog.hatena.ne.jp/bsdhouse/","title":"C++0x\u306e\u30e1\u30e2\u30ea\u30d0\u30ea\u30a2\u3092\u3088\u308a\u6df1\u304f\u89e3\u8aac\u3057\u3066\u307f\u308b","blog_title":"yamasa\u306e\u30cd\u30bf\u5e33","width":"100%","blog_url":"https://yamasa.hatenablog.jp/","provider_name":"Hatena Blog","categories":["programming","multithreading"],"url":"https://yamasa.hatenablog.jp/entry/20090929/1254237835","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyamasa.hatenablog.jp%2Fentry%2F20090929%2F1254237835\" title=\"C++0x\u306e\u30e1\u30e2\u30ea\u30d0\u30ea\u30a2\u3092\u3088\u308a\u6df1\u304f\u89e3\u8aac\u3057\u3066\u307f\u308b - yamasa\u306e\u30cd\u30bf\u5e33\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u3082\u306f\u3084\u8ab0\u5f97\u30ec\u30d9\u30eb\u306b\u306a\u308a\u3064\u3064\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u3082\u30e1\u30e2\u30ea\u30d0\u30ea\u30a2\u306b\u3064\u3044\u3066\u306e\u8a71\u3067\u3059\u3002\u4ee5\u524d\u306e\u8a71\u306e\u7d9a\u304d\u306b\u306a\u308b\u306e\u3067\u3001\u307e\u3060\u306e\u65b9\u306f\u521d\u56de\u3068\u524d\u56de\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u5148\u306b\u3069\u3046\u305e\u3002 \u3055\u3066\u3001\u307e\u305a\u6700\u521d\u306b\u3001C++0x\u306eatomic\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u305f\u300c\u6b63\u3057\u304f\u540c\u671f\u5316\u3055\u308c\u3066\u3044\u308b\u30b3\u30fc\u30c9\u300d\u306e\u4f8b\u3092\u6319\u3052\u3066\u307f\u307e\u3059\u3002 struct Hoge { int foo; }; // \u521d\u671f\u5024 std::atomic p(nullptr); // Thread 1 Hoge* r1 = new Hoge(); r1->foo = 42; p.store(r1, std::memory_order_release); // Thread 2 Hoge* r2; do {\u2026","version":"1.0","type":"rich","published":"2009-09-29 00:23:55","provider_url":"https://hatena.blog"}