<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hidemon</author_name>
  <author_url>https://blog.hatena.ne.jp/hidemon/</author_url>
  <blog_title>hidemonのブログ</blog_title>
  <blog_url>https://hidemon.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>lambdaに寄り道したが，threadのほう．condition variableとmutexを使って共有bufferを作ってみる． #include &lt;iostream&gt; #include &lt;string&gt; #include &lt;boost/thread.hpp&gt; #include &lt;cstdlib&gt; using namespace std; class buffer { list&lt;int&gt; queue; boost::condition_variable cond; boost::mutex mut; public: void push(int item) { { boost::lock_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhidemon.hatenadiary.jp%2Fentry%2F20081217%2F1229532177&quot; title=&quot;boost thread - hidemonのブログ&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>2008-12-17 01:42:57</published>
  <title>boost thread</title>
  <type>rich</type>
  <url>https://hidemon.hatenadiary.jp/entry/20081217/1229532177</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
