NVIDIA and TLS

Terry Lambert tlambert2 at mindspring.com
Mon Jun 16 22:46:12 PDT 2003


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


More information about the freebsd-threads mailing list