Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : Alexander Terekhov Date : Tue Mar 08 2005 11:02 am Marcin 'Qrczak' Kowalczyk wrote: [...] > But perhaps not for a hypothetical POSIX/C++, if it specifies that > lazy initialization of static locals is MT-safe, Only as additional synchronized form of lazy init (in addition to conventional static locals) when you explicitly tell compiler (expressing it in source code, not via compiler option) that you want this or that static local instance to have synchronized init. C++ made a particular principle of the idea that "you should not pay for what you don't use." > just like pthread_once in POSIX/C. Right. regards, alexander. .