[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: faster pthread_getspecific



phil-list redhat com schrieb am 22.11.02 22:53:10:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hong Zhang wrote:
> >>Start using ELF TLS.  If NPTL is available TLS is, too.  It's the real
> >>solution to any problem involving pthread_getspecific etc.
> > 
> > 
> > I think pthread interface is much more popular than ELF TLS. At least
> > it is new to me.
> 
> Of course it's more widely known because it's standardized.  The TLS
> stuff (see http://people.redhat.com/drepper/tls.pdf) 

What's "static constructor" ("C++ programs thread-local variables must 
not require a static constructor.")? Do you mean dynamic initialization?

> is a *much* faster

Get rid of generation counters, Ulrich. Really.

> and more flexible way to handle thread-specific data.  

More flexible? TSD provides d-tors. Is this "flexibility" supported by 
TLS? How this can be done [just in case I'm missing something]? TIA.

regards,
alexander.

______________________________________________________________________________
Wenn POP fur Sie mehr als nur Musik ist. Senden Sie Ihre SMS direkt aus
Outlook oder Netscape! http://freemail.web.de/features/?mc=021177





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]