_glthread_TSD problem [was: display lists broken in Mesa maybe due to glapi dispatch changes (?), and an Xthreads problem]

Adam Jackson ajax at nwnk.net
Tue Aug 30 11:03:48 PDT 2005


On Tuesday 30 August 2005 11:31, Ian Romanick wrote:
> Daniel Stone wrote:
> > On Mon, 2005-08-01 at 09:37 -0700, Ian Romanick wrote:
> >>The only way this could happen is if *both* PTHREADS and XTHREADS are
> >>defined.  I suspect the Xthreads.h problem was always there, but it was
> >>never hit because XTHREADS was never defined.  Some how, somewhere,
> >>XTHREADS is getting set.  I'll have to look into it, but I think this is
> >>a bug in whatever X.org header is defining XTHREADS for us. :(
> >
> > Yes, you're spot on about PTHREADS and XTHREADS both being defined.
> > XlibConf.h now defines XTHREADS if we're using it, the consensus being
> > that if you're using <X11/Xlibint.h>, you deserve everything you get.
>
> Which I consider to be a bug, but apparently I'm the only one.  If I
> wanted XTHREADS support, I'd ask for it.

You _have_ to have it defined correctly.  The Xlib ABI changes based on 
whether it was built with XTHREADS support.  We didn't have to define 
XTHREADS in an installed header file in the monolith because everything was 
built in the same pass and imake would define it for us.  This is no longer 
the case.

The s/XTHREADS/USE_&/ conversion is correct, to the extent that it lets you 
choose whether your libGL is threadsafe.  Whether we should allow people to 
do that is perhaps debatable.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20050830/20c3d0f8/attachment.pgp>


More information about the xorg mailing list