Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Thu Feb 17 2005 09:44 pm gottlobfrege@gmail.com writes: > "On return from pthread_once(), it is guaranteed that init_routine() > has completed." Ah, I missed this sentence. So it's OK. I wonder if Giancarlo will claim that pthread_once is useless for the very purpose it has been designed for. The rationale in SUSv3 shows a C example for which static locals would be used in C++, and shows how pthread_once makes it working in a multithreaded environment. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .