diff options
author | Jesse Hall <jessehall@google.com> | 2012-01-11 10:49:55 -0800 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2012-01-11 10:49:55 -0800 |
commit | 7851751670aa7b6e4cb153ea7c16185f8759cc4e (patch) | |
tree | c9f6989240439e14dc0b808cc73750df7556a14e /net-android.c | |
parent | 762d5decf0eaa766e69ecd94f4349be53dedd767 (diff) | |
download | external_qemu-7851751670aa7b6e4cb153ea7c16185f8759cc4e.zip external_qemu-7851751670aa7b6e4cb153ea7c16185f8759cc4e.tar.gz external_qemu-7851751670aa7b6e4cb153ea7c16185f8759cc4e.tar.bz2 |
SDL: Call XInitThreads() after loading Xlib
XInitThreads() enables thread-safety in Xlib, so multiple threads can
safely call into it concurrently. This happens with GLES passthrough
enabled: the GLES system serializes its own Xlib and GLX calls, but
there is no serialization between the GLES system and the SDL code
running the main UI.
This call must be the first Xlib call, so I put it here in the loading
code rather than the multiple places that call XOpenDisplay().
Change-Id: I3cd3177fb8e0904a803a6b5c8f89a4ecda73bd1c
Diffstat (limited to 'net-android.c')
0 files changed, 0 insertions, 0 deletions