<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ubnt_intrepid</author_name>
  <author_url>https://blog.hatena.ne.jp/ubnt_intrepid/</author_url>
  <blog_title>にっき</blog_title>
  <blog_url>https://ubnt-intrepid.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Programming</anon>
  </categories>
  <description>とあるツールを作る際に非同期処理を実装したくなったのだが， その際に Rust にある channel があると便利そうだなぁと思ったので実装してみた． 概要 実装は この記事 を参考にした． ただし，Golang 版では双方向通信が可能になっているのに対し，移植版は一方向にするため Proxy sender&lt;T&gt;, receiver&lt;T&gt; を介して通信をするようにしている． 詳細 channel&lt;T&gt; 「要はスレッドセーフなキューにすればよいのだろう」というノリで，std::queue&lt;T&gt; にミューテックスと条件変数を付属させたものにした． 今のところブロッキング版のみだが，より使い勝手を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fubnt-intrepid.hatenablog.com%2Fentry%2F2016%2F09%2F21%2F053249&quot; title=&quot;C++11で Rust の channelを実装してみる - にっき&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>2016-09-21 05:32:49</published>
  <title>C++11で Rust の channelを実装してみる</title>
  <type>rich</type>
  <url>https://ubnt-intrepid.hatenablog.com/entry/2016/09/21/053249</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
