Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2003 22:45:00 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Gareth Hughes <gareth@nvidia.com>
Cc:        Julian Elischer <julian@elischer.org>
Subject:   Re: NVIDIA and TLS
Message-ID:  <3EEEAADC.66CA7261@mindspring.com>
References:  <2D32959E172B8F4D9B02F68266BE421401A6D7D8@mail-sc-3.nvidia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Gareth Hughes wrote:
> On Mon, 16 Jun 2003, Daniel Eischen wrote:
> >
> > I see this as a problem with the OpenGL API.  You're trying
> > to make something thread-safe that isn't by its nature.
> > I would rather see OpenGL-MT with new interfaces that
> > are by nature thread-safe.
> 
> Sorry, but this simply isn't going to happen.  People smarter
> than you or I designed the API this way to allow for high
> performance implementations on a wide variety of platforms.
> There are very good reasons each API call doesn't take a
> context parameter.

It sounds like you want to wrap your entry points, and then use
-ffixed-reg to reserve one of the general purpose registers to
burn as a TLS context register.

If you are going to burn a register on this, it should at least
be a register you actually have a right to muck with...

-- Terry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EEEAADC.66CA7261>