<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomohikoseven</author_name>
  <author_url>https://blog.hatena.ne.jp/tomohikoseven/</author_url>
  <blog_title>tomohikosevenの日記</blog_title>
  <blog_url>https://tomohikoseven.hatenadiary.org/</blog_url>
  <categories>
    <anon>POSIX</anon>
    <anon>pthread_cancel</anon>
  </categories>
  <description>はじめに メインスレッドから生成したスレッドを途中で終了させるにはどうするのかを調査中、pthread_killが使えることがわかったが、 【POS44-C. シグナルを使用してスレッドを終了しない】 では、pthread_cancelを使用せよとあった。使ったことがないので、サンプルを作りながら、挙動を確認してみた。 それをまとめた記事である。今回のサンプルソースはこちら pthread_cancelの挙動まとめ pthread_cancelの挙動は、大きく分けて４つある。 キャンセルを許可／不許可 ・・・A 遅延取り消し／即時取り消し（非協調的） ・・・B A×B（＝２×２）の４つである。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftomohikoseven.hatenadiary.org%2Fentry%2F20121104%2F1351998092&quot; title=&quot; pthread_cancelを試す。 - tomohikosevenの日記&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-11-04 12:01:32</published>
  <title> pthread_cancelを試す。</title>
  <type>rich</type>
  <url>https://tomohikoseven.hatenadiary.org/entry/20121104/1351998092</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
