On 09/30/2010 06:44 PM, Francesco Abbate wrote:
What happens is that the secondary thread blocks during the XSync
operation until the main thread receive some events.
Hi,
XNextEvent may call _XReadEvents and XSync calls _XReply. If XNextEvent
is called before XSync from a different thread and there are no events,
this may happen. It's a bug in Xlib implementation. Search for "FIXME"
in http://cgit.freedesktop.org/xorg/lib/libX11/tree/src/xcb_io.c. I
don't know if you are facing this problem but based on your description
that may be the case.
Best regards,
Francesco
-- Rami
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel