<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syou6162</author_name>
  <author_url>https://blog.hatena.ne.jp/syou6162/</author_url>
  <blog_title>yasuhisa's blog</blog_title>
  <blog_url>https://www.yasuhisay.info/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>関数ポインタめんどくせえ、無名関数作らせろって感じです!! プログラムの命令やグローバルデータのようなものはプロセスに収める プログラムカウンタやスタックといった実行状態に関連する情報はスレッドに収める #include &lt;iostream&gt; #include &lt;pthread.h&gt; void* do_one_thing(void *arg) { int *pnum_times = (int *) arg; int x = 0; for(int i = 0; i &lt; 4; i++) { std::cout &lt;&lt; &quot;doing one thing&quot; &lt;&lt; std::endl; for(int j…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20091227%2F1261837873&quot; title=&quot;pthread関係のメモ - yasuhisa&amp;#39;s blog&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>2009-12-27 23:31:13</published>
  <title>pthread関係のメモ</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/20091227/1261837873</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
