Nvidia, TLS and __thread keyword -- an observation
Marcel Moolenaar
marcel at xcllnt.net
Tue Jun 17 17:48:35 PDT 2003
On Tue, Jun 17, 2003 at 04:38:44PM -0700, Julian Elischer wrote:
> > The dynamic TLS model requires more substantial changes and involves
> > RTLD as well. This is the model that requires __tls_get_addr().
>
> By my reading of it,
> you can't use the static model alone.
> If you have dynamically loaded modules you need to be able to use the
> dynamic model.
Yes. If you don't support dynamic loading of shared libraries with TLS,
you don't need the dynamic model. You can use the static TLS model even
with shared objects, provided you allocate the TLS on thread creation.
But this is mostly academic. We need to implement them both...
--
Marcel Moolenaar USPA: A-39004 marcel at xcllnt.net
More information about the freebsd-threads
mailing list