This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Static variable addressing
- From: Richard Henderson <rth at redhat dot com>
- To: Joy Mukherjee <jmukherj at csgrad dot cs dot vt dot edu>
- Cc: gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Jan 2002 15:49:45 -0800
- Subject: Re: Static variable addressing
- References: <Pine.OSF.4.33.0201291342140.22448-100000@csgrad.cs.vt.edu>
On Tue, Jan 29, 2002 at 01:55:20PM -0500, Joy Mukherjee wrote:
> I was trying to separate static variables for threads i.e. if I
> had 2 threads, I want that each should have its own copy of static
> variables. Is there anyway I can do that ?
No. The only thing you can do at the moment is use pthread_getspecific.
r~