This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: global {con,de}structors, atexit & friends


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]