Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Thu Feb 24 2005 09:50 pm "David Schwartz" writes: > Why? The pthreads standard is absolutely clear and not in error. The C++ > ABI is absolute clear and not in error. The problem is strictly in G++, > which doesn't turn the locking off when the programmer specifically > indicates that he has locked all cases where data may be shared (implied by > '-pthreads'). The problem is in the lack of a common C++/POSIX standard which would clearly say that static local initializers are thread-safe. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .