<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chiharunpo</author_name>
  <author_url>https://blog.hatena.ne.jp/chiharunpo/</author_url>
  <blog_title>Chiharu の日記</blog_title>
  <blog_url>https://chiharunpo.hatenablog.com/</blog_url>
  <categories>
    <anon>Parallel force - パラレル・フォース</anon>
    <anon>C++</anon>
    <anon>ARM MPCore</anon>
  </categories>
  <description>『Parallel force - パラレル・フォース』のウィンドウ処理とバックバッファの転送処理を X-Window 環境に移植したのですが、X11 API (xlib) のマルチスレッドでどハマリして、解決に結構時間を使いました。以下、解決メモです。 X11 API (xlib) のスレッド対応 X11 API (xlib) をスレッド セーフに動作させるには、プログラムの冒頭で XInitThreads API を呼び出す必要があります。これは他のすべての X11 API (xlib) 呼び出しの前に実施します。 // X11 API をスレッド セーフに int main() { //…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchiharunpo.hatenablog.com%2Fentry%2F20110809%2F1312901637&quot; title=&quot;X-Window でマルチスレッド 〜X11 API (xlib) プログラミング メモ - Chiharu の日記&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>2011-08-09 23:53:57</published>
  <title>X-Window でマルチスレッド 〜X11 API (xlib) プログラミング メモ</title>
  <type>rich</type>
  <url>https://chiharunpo.hatenablog.com/entry/20110809/1312901637</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
