{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyupo5656.hatenadiary.org%2Fentry%2F20040713%2Fp3\" title=\" C++\u3067synchronized method\u3092\u66f8\u304f\u306e\u306f\u96e3\u3057\u3044 (3) - memologue\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"memologue","author_url":"https://blog.hatena.ne.jp/yupo5656/","height":"190","width":"100%","published":"2004-07-13 00:00:02","version":"1.0","description":"\u65b9\u5f0fc\u306e\u6539\u826f\u3067\u3059\u3002\u307e\u305a\u3001\u300c\u521d\u671f\u5316\u9806\u300d\u306e\u554f\u984c\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u306f\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u306a\u304f\u521d\u671f\u5316\u304c\u6e08\u3093\u3067\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001mutex\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092 // \u65b9\u6cd5c' (\u4eee) void Foo::need_to_sync(void) { static StaticMutex mutex = { PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP, ........ };\u306e\u3088\u3046\u306b\u521d\u671f\u5316\u3067\u304d\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u4e00\u822c\u7684\u306aC++\u306e\u30af\u30e9\u30b9\u306f\u3053\u3046\u3044\u3046\u5f62\u306e\u521d\u671f\u5316\u306f\u8a31\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u306e\u3088\u3046\u306a\u521d\u671f\u5316\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4e0a\u8a18StaticMutex\u30af\u30e9\u30b9\u306fPO\u2026","provider_name":"Hatena Blog","url":"https://yupo5656.hatenadiary.org/entry/20040713/p3","provider_url":"https://hatena.blog","title":" C++\u3067synchronized method\u3092\u66f8\u304f\u306e\u306f\u96e3\u3057\u3044 (3)","blog_url":"https://yupo5656.hatenadiary.org/","type":"rich","categories":["C++"],"author_name":"yupo5656","image_url":null}