<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekowen</author_name>
  <author_url>https://blog.hatena.ne.jp/nekowen/</author_url>
  <blog_title>STORES Product Blog</blog_title>
  <blog_url>https://product.st.inc/</blog_url>
  <categories>
    <anon>iOS/Androidアプリ</anon>
    <anon>Swift</anon>
    <anon>STORES 決済</anon>
  </categories>
  <description>こんにちは、STORES 決済 でiOSアプリを開発している @nekowenです。 マルチスレッドプログラミングは難しいと言われますが、その理由の1つとして、データ競合(data race)があります。 データ競合は複数のスレッドが同じ共有データに同時にアクセスし、少なくとも1つが書き込みを行う場合に発生します。これは主に予期せぬ動作やクラッシュを引き起こす厄介なバグの原因となります。 そのため、データ競合を起こさないよう NSLock や DispatchQueue を用いた排他処理が必要となってきますが、これは実装や考慮漏れを引き起こすリスクがあります。 一例として、STORES 決済 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fproduct.st.inc%2Fentry%2F2025%2F06%2F12%2F183008&quot; title=&quot;潜在的なデータ競合をなくすための取り組み - STORES Product 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/s/stores-tech/20250612/20250612183014.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-06-12 18:30:08</published>
  <title>潜在的なデータ競合をなくすための取り組み</title>
  <type>rich</type>
  <url>https://product.st.inc/entry/2025/06/12/183008</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
