{"provider_url":"https://hatena.blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyupo5656.hatenadiary.org%2Fentry%2F20040713%2Fp2\" title=\" C++\u3067synchronized method\u3092\u66f8\u304f\u306e\u306f\u96e3\u3057\u3044 (2) - memologue\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_name":"yupo5656","blog_url":"https://yupo5656.hatenadiary.org/","published":"2004-07-13 00:00:01","image_url":null,"author_url":"https://blog.hatena.ne.jp/yupo5656/","type":"rich","provider_name":"Hatena Blog","url":"https://yupo5656.hatenadiary.org/entry/20040713/p2","description":"\u300c\u3044\u3084\u3001\u30e1\u30bd\u30c3\u30c9\u306e\u540c\u671f\u5316\u306a\u3069\u983b\u7e41\u306b\u5fc5\u8981\u306b\u306a\u308b\u306f\u305a\u3060\u3001\u4fbf\u5229\u306a\u65b9\u6cd5\u304c\u306a\u3044\u308f\u3051\u304c\u306a\u3044\u300d\u3068\u4ef0\u308b\u65b9\u3082\u3044\u308b\u3067\u3057\u3087\u3046\u3002\u306f\u3044\u3001\u3042\u308a\u307e\u3059\u3002\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u306f\u3001 (non-POD\u578b\u306e\u3001\u3064\u307e\u308a\u666e\u901a\u306e)C++\u306e\u30af\u30e9\u30b9\u3068\u3057\u3066\u300cMutex\u30af\u30e9\u30b9\u300d\u3092\u7528\u610f\u3059\u308b \u30af\u30e9\u30b9\u5909\u6570\u3001\u3042\u308b\u3044\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3068\u3057\u3066Mutex\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u7528\u610f\u3057\u3001\u305d\u308c\u3092\u7528\u3044\u3066\u30e1\u30bd\u30c3\u30c9\u3092\u540c\u671f\u5316\u3059\u308b \u3068\u306a\u308a\u307e\u3059\u3002 \u5177\u4f53\u7684\u306b\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u3001Mutex\u30af\u30e9\u30b9\u3068\u3044\u3046\u306e\u306f\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059*1\u3002 class Mutex { public: Mutex() { pthread_mutex_init(&m_, 0); } void Lock(void) { p\u2026","blog_title":"memologue","title":" C++\u3067synchronized method\u3092\u66f8\u304f\u306e\u306f\u96e3\u3057\u3044 (2)","categories":["C++"],"version":"1.0"}