<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>woshidan</author_name>
  <author_url>https://blog.hatena.ne.jp/woshidan/</author_url>
  <blog_title>woshidan's loose leaf</blog_title>
  <blog_url>https://woshidan.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Camera2</anon>
    <anon>CameraDevice</anon>
    <anon>Semaphore</anon>
  </categories>
  <description>セマフォは獲得してから解放するまでのコードを一つのスレッドしか通ってくれるなよ、的なもの 1つ、というのはコンストラクタの引数1から 同時に実行していい数が指定できるロック的な と現状理解している サンプル見てるとこのセマフォでCamera2 APIの利用のタイミングの同期を取っているっぽい 獲得 ~ 解放までの流れ 1 CameraManager.openCamera で CameraDevice インスタンスを経由して Camera2 APIにアクセスしようとする*1 CameraDevice.StateCallback の onOpened, onDisconnected, onErro…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwoshidan.hatenadiary.jp%2Fentry%2F2017%2F09%2F21%2F094509&quot; title=&quot;セマフォとロックとPauseからの復帰 - woshidan&amp;#39;s loose leaf&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>2017-09-21 09:45:09</published>
  <title>セマフォとロックとPauseからの復帰</title>
  <type>rich</type>
  <url>https://woshidan.hatenadiary.jp/entry/2017/09/21/094509</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
