<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>e_c_e_t</author_name>
  <author_url>https://blog.hatena.ne.jp/e_c_e_t/</author_url>
  <blog_title>記録（e_c_e_t）</blog_title>
  <blog_url>https://e-c-e-t.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>C++病。別々のスレッドから同じ位置にあるメモリの情報を見たい。 というときに、e_c_e_tは、思いつくままにポインタでガシガシメモリをいじくるのだけれど、 javaの場合だと、下のようなクラスでスレッドを書くのが正しい流儀のようだ。 // MFCで書くとこういう感じだろう class Hoge{ char vals[1000]; HANDLE mutex; // コンストラクタ Hoge(){ mutex = CreateMutex(0, FALSE, 0); } // スレッドの中からも外からも触られる関数 void setChar(int i){ WaitForSingleObject…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fe-c-e-t.hatenadiary.org%2Fentry%2F20051221%2Fp3&quot; title=&quot;ポインタが欲しいときがある - 記録（e_c_e_t）&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>2005-12-21 00:00:03</published>
  <title>ポインタが欲しいときがある</title>
  <type>rich</type>
  <url>https://e-c-e-t.hatenadiary.org/entry/20051221/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
