<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hecomi</author_name>
  <author_url>https://blog.hatena.ne.jp/hecomi/</author_url>
  <blog_title>凹みTips</blog_title>
  <blog_url>https://tips.hecomi.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>V8</anon>
  </categories>
  <description>はじめに v8 を利用して、JavaScript 側で定義したコールバックが別スレッドから呼びたかったのでやってみました。具体的には、音声認識エンジン Julius にて、発話待機開始・発話開始・認識終了などのイベントが非同期でやってくるので、それらを JavaScript 側で補足して処理したいと思ったのが発端です。完全に非同期で実行する場合は v8::Isolate を使えば出来そうなコードはちらほらネット上にあったのですが、同一の Context をスレッド間で共有して実行する、という要件を満たすコードが見つからなかったのでまとめてみました。ただ、取り敢えず動きますが、コードを見ていただ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftips.hecomi.com%2Fentry%2F20120603%2F1338739195&quot; title=&quot;v8 で Context をスレッド間で共有してみた - 凹みTips&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>2012-06-03 00:59:55</published>
  <title>v8 で Context をスレッド間で共有してみた</title>
  <type>rich</type>
  <url>https://tips.hecomi.com/entry/20120603/1338739195</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
