<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>setuna-kanata</author_name>
  <author_url>https://blog.hatena.ne.jp/setuna-kanata/</author_url>
  <blog_title>while( c++ );</blog_title>
  <blog_url>https://setuna-kanata.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>windows</anon>
  </categories>
  <description>XAudio2のイベント通知のためにthreadクラスが必要になったので、テンプレートを使って実装してみたいと思います。ただし、pthreadは使ったことがないので、windowsのみの実装になります。 参考サイト Boost.Threads 前回雑記で書いたthreadクラスの実装を晒す - xyuyuxの日記 threadクラスの実装を晒す２ - xyuyuxの日記 CLX C++ Libraries 使い方 コンストラクタに戻り値void、引数voidの関数または関数オブジェクトを渡して、スレッドを開始します。 void hoge(){ std::cout &lt;&lt; &quot;hoge&quot; &lt;&lt; st…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsetuna-kanata.hatenadiary.org%2Fentry%2F20091227%2F1261878879&quot; title=&quot;threadクラスの実装。その１ - while( 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>http://www.hatena.ne.jp/images/common/icon-download.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-12-27 10:54:39</published>
  <title>threadクラスの実装。その１</title>
  <type>rich</type>
  <url>https://setuna-kanata.hatenadiary.org/entry/20091227/1261878879</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
