<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>ミューテックスを自動的にアンロックするためのstd::lock_guardクラスとstd::unique_lockクラスでは、そのコンストラクタでいくつかのロック方法を提供しています。 1. 何も指定しない まず、何も指定しない場合。この場合、ミューテックスクラスのlock()メンバ関数を使用してロックの取得が行われます。これはstd::lock_guardとstd::unique_lockの両方でサポートされています。 #include &lt;iostream&gt; #include &lt;mutex&gt; int main() { std::mutex mtx; { std::unique_lock&lt;st…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20120905%2F1346829117&quot; title=&quot; スコープロックでの4つのロック方法 - Faith and Brave - C++で遊ぼう&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-09-05 16:11:57</published>
  <title> スコープロックでの4つのロック方法</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20120905/1346829117</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
