This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: global {con,de}structors, atexit & friends
- To: egcs at cygnus dot com
- Subject: Re: global {con,de}structors, atexit & friends
- From: Nathan Myers <ncm at cygnus dot com>
- Date: Mon, 27 Jul 1998 16:47:51 -0700
- Newsgroups: cygnus.egcs
- Organization: http://www.cantrip.org/
- References: <r290ljqcw2.fsf@happy.cygnus.com>, <199807261715.NAA04086.cygnus.egcs@riemann.math.psu.edu>
Oleg Zabluda wrote:
> The Statndard says nothing about multithreading, so it's
> arguable whether ensuring initialization once and only once
> in the presence of multithreading is required. Some say that
> the ISO C++ alone does not require that, but the combination
> of ``ISO C++'' + "Pthreads" strogly implies that. It seems
> to me from my exprementations that egcs does it right
> in the presence of multiple threads, which is great.
I think this is not correct. Egcs does not yet handle multithreaded
initialization of local statics "correctly".
Nathan Myers
ncm@cantrip.org