{"published":"2013-04-23 00:00:00","provider_name":"Hatena Blog","height":"190","type":"rich","categories":["C","C++"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20130423%2Fp1\" title=\"atomic\u5909\u6570\u9593\u306eatomic\u306a\u30b3\u30d4\u30fc - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"atomic\u5909\u6570\u9593\u306eatomic\u306a\u30b3\u30d4\u30fc","blog_url":"https://yohhoy.hatenadiary.jp/","url":"https://yohhoy.hatenadiary.jp/entry/20130423/p1","blog_title":"yohhoy\u306e\u65e5\u8a18","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC/C++\u304c\u63d0\u4f9b\u3059\u308batomic\u5909\u6570*1\u3068\u305d\u306e\u30b3\u30d4\u30fc\u64cd\u4f5c\u306b\u95a2\u3059\u308b\u30e1\u30e2\u30022\u500b\u306eatomic\u5909\u6570\u9593\u306b\u304a\u3051\u308b \u201catomic\u306a\u30b3\u30d4\u30fc\u64cd\u4f5c\u201d \u306f\u63d0\u4f9b\u3055\u308c\u306a\u3044\u3002\u901a\u5e38\u306f \u201catomic\u5909\u6570\u304b\u3089\u306e\u8aad\u8fbc(load)\u201d\uff0b\u201catomic\u5909\u6570\u3078\u306e\u683c\u7d0d(store)\u201d \u3067\u4ee3\u7528\u3059\u308c\u3070\u3088\u3044\u3002\u305f\u3060\u3057\u3001\u4e0b\u8a18\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306a2\u3064\u306e\u30b3\u30d4\u30fc\u64cd\u4f5c\u304c\u4e26\u884c\u5b9f\u884c\u3055\u308c\u305f\u5834\u5408\u3001load/store\u64cd\u4f5c\u306e\u30a4\u30f3\u30bf\u30fc\u30ea\u30fc\u30d6\u304c\u8d77\u3053\u308a\u3046\u308b\u3053\u3068\u306b\u7559\u610f\u3002*2 // C++11 #include <atomic> using namespace std; // C11 #include <stdatomic.h> atomic_int x =\u2026","image_url":null,"width":"100%","version":"1.0","provider_url":"https://hatena.blog","author_name":"yohhoy","author_url":"https://blog.hatena.ne.jp/yohhoy/"}