This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: string and __thread
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc:
- Date: Fri, 28 Mar 2003 18:21:39 -0600 (CST)
- Subject: Re: string and __thread
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
In article <20030328223847 dot GD16816 at tofu dot dreamhost dot com> Nathan writes:
> It occurs to me that we might declare that object "__thread", so there
> would be as many as there are threads, reducing contention scalably as
> the number of threads increases, and (as the number of threads exceeds
> the number of CPUs) beyond.
Please note that the ELF program loader (and thread library) for a
system needs to be updated to support this new gcc feature. AFAIK,
only GNU Linux (and maybe Solaris) support it so far. Does any
non-ELF system even have the ability to support this feature?
Regards,
Loren