[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg-devel
Subject:    Re: problem with multithreaded application and Xlib
From:       Francesco Abbate <francesco.bbt () gmail ! com>
Date:       2010-09-30 19:28:03
Message-ID: AANLkTim-DTfaj_2maBCt76nDxv3rho1zVNYtZoE23WiL () mail ! gmail ! com
[Download RAW message or body]

2010/9/30 Rami Ylimäki <rami.ylimaki@vincit.fi>:
> 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.

Hi Rami,

this sounds interesting. Actually I strongly suspect libxcb for this
problem. As you pointed out in xcb_io.c there is a FIXME comment so
the developers *are* aware of the problem. I'm wondering if I should
post the problem in the xcb mailing list.

Or may be I've just to switch back to the stable version of X Window
and wait for this bug to be fixed for the next release. The problem is
that I needs to have at least OpenGL 2 to use shaders and the binary
ATI driver does not works (sic!). The development with the Gallium
architecture is very interesting and exciting but for the moment it is
just not ready :-)

Thank you very much for the help!

Francesco
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic