<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takamints</author_name>
  <author_url>https://blog.hatena.ne.jp/takamints/</author_url>
  <blog_title>銀の弾丸</blog_title>
  <blog_url>https://takamints.hatenablog.jp/</blog_url>
  <categories>
    <anon>マルチスレッド・非同期処理</anon>
    <anon>C / C++</anon>
    <anon>Windows</anon>
  </categories>
  <description>Windowsで、なるべく正確に一定周期で処理を実行するタイマーの基本クラスです。 派生クラスで run() メソッドを実装し、start()メソッドを呼べば、setInterval()で指定した周期で、処理が呼び出されます。（⇒TimerThreadSample.cpp） リアルタイムOSではないので、いろんな要因で処理時間に揺れが生じますが、処理が遅れた場合は、その後のSleep時間を調整してリカバリーするようになっています。 Windows単体でのデスクトップアプリでは、あまりこういうスレッドを使う用途はないように思いますが、外部機器の状態をポーリングするときなどには有用かと。あとカメラ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakamints.hatenablog.jp%2Fentry%2F2014%2F09%2F27%2F203358&quot; title=&quot;なるべく一定周期で実行するスレッドクラス - 銀の弾丸&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>2014-09-27 20:33:58</published>
  <title>なるべく一定周期で実行するスレッドクラス</title>
  <type>rich</type>
  <url>https://takamints.hatenablog.jp/entry/2014/09/27/203358</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
