{"version":"1.0","published":"2024-01-24 22:52:58","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftera1707.com%2Fentry%2F2024%2F01%2F24%2F225258\" title=\" \u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\uff08std::mutex\uff09\u3067lock\u3059\u308b\u2461 - tera1707\u2019s blog\" 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":"tera1707\u2019s blog","author_name":"tera1707","height":"190","categories":["C++"],"url":"https://tera1707.com/entry/2024/01/24/225258","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","blog_url":"https://tera1707.com/","author_url":"https://blog.hatena.ne.jp/tera1707/","image_url":null,"width":"100%","title":" \u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\uff08std::mutex\uff09\u3067lock\u3059\u308b\u2461","type":"rich","description":"\u3082\u304f\u3058 https://tera1707.com/entry/2022/02/06/144447 \u3084\u308a\u305f\u3044\u3053\u3068 \u524d\u56de\u3001std::mutex\u3092\u4f7f\u3063\u3066\u3001\u6392\u4ed6\uff08C#\u306elock(obj)\u7684\u306a\u3053\u3068\uff09\u3092\u3084\u3063\u3066\u307f\u305f\u3002 \u304c\u3001\u4e0b\u8a18\u30da\u30fc\u30b8\u306b\u3088\u308b\u3068\u3001 https://cpprefjp.github.io/reference/mutex/mutex.html \u3053\u306e\u30af\u30e9\u30b9\u306e\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u81ea\u52d5\u7684\u306b unlock() \u30e1\u30f3\u30d0\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u306f\u306a\u3044\u305f\u3081\u3001\u901a\u5e38\u3053\u306e\u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u95a2\u6570\u306f\u76f4\u63a5\u306f\u547c\u3073\u51fa\u3055\u305a\u3001 lock_guard \u3084 unique_lock \u3068\u3044\u3063\u305f\u30ed\u30c3\u30af\u7ba1\u7406\u30af\u30e9\u30b9\u3068\u4f75\u7528\u3059\u308b\u3002 \u3068\u306e\u3053\u3068\u3067\u3001\u901a\u5e38\u306f\u3001\u5358\u54c1\uff08\u3064\u307e\u308a\u524d\u56de\u2026"}