[SDL] "Xlib: unexpected async reply" with Mplayer embedded
M-.-n
nostromo at arkaos.net
Sun Apr 20 14:12:03 PDT 2008
Is the SDL event subsystem thread-safe ? Can you for example post an expose
event (or a user one) from the secondary thread to signal some redraw has to
be done ?
This happens because the Xlib seem to be not thread-safe.
You would need to only ensure that the display updates happens only from
the main thread only, you would not face this issue.
From the thread receiving asynchronous message, you need to signal the
thread waiting under the context of main thread as and when asych message
arrives and the main thread should do the job of display updates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080420/e6ec726f/attachment.htm
More information about the SDL
mailing list