<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mkomiya</author_name>
  <author_url>https://blog.hatena.ne.jp/mkomiya/</author_url>
  <blog_title>小宮日記</blog_title>
  <blog_url>https://mkomiya.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>ロック変数をハッシュのエントリー毎に確保して、エントリー毎ロックにしました。 ちょっとメモリーがもったいないですけど…… たとえばハッシュ手を取り出す関数 ロックしてる間に、hashValを参照して、e-&gt;Bestをコピー、ロックを外してからリターンする。 ハッシュ手が見つからない場合は、ロックを解除してからリターン こんな感じですかね？ 全体ロックだと、コア毎にロック変数が1個あれば、それをロックしておけばいいんですが、 ロックしてる間は、誰もハッシュテーブルを参照できなくなる。 エントリー毎にロックしておけば、同じエントリーを参照する人以外は、ロックの影響を受けません。 これってMySQL…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmkomiya.hatenadiary.org%2Fentry%2F20080429%2F1209474925&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>2008-04-29 22:15:25</published>
  <title>排他ロックは、ハッシュのエントリー毎に</title>
  <type>rich</type>
  <url>https://mkomiya.hatenadiary.org/entry/20080429/1209474925</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
