<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tera1707</author_name>
  <author_url>https://blog.hatena.ne.jp/tera1707/</author_url>
  <blog_title>tera1707’s blog</blog_title>
  <blog_url>https://tera1707.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>.NET6</anon>
  </categories>
  <description>もくじ https://tera1707.com/entry/2022/02/06/144447 やりたいこと あるスレッドで行っている処理を、別のスレッドの処理が終わるまで待ってほしい、みたいなケースがあった。なにかよいやり方ないか、調べてみる。 やり方 ManualResetEventもしくはAutoResetEventを使う。 例えばManualResetEventを使う場合、 あるスレッドでmanualEvent.WaitOne();して、別スレッドの処理が終わるのを待つようにして、 別スレッド側で処理が終わったらmanualEvent.Set();をすると、 元のスレッドの方で、続き…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftera1707.com%2Fentry%2F2022%2F07%2F04%2F222637&quot; title=&quot;ManualResetEvent / AutoResetEvent で処理を待たせる - tera1707’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>https://cdn-ak.f.st-hatena.com/images/fotolife/t/tera1707/20220704/20220704224014.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-04 22:26:37</published>
  <title>ManualResetEvent / AutoResetEvent で処理を待たせる</title>
  <type>rich</type>
  <url>https://tera1707.com/entry/2022/07/04/222637</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
