Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : Bruce Visscher Date : Fri Feb 11 2005 10:43 am Sorry to catch the tail end of this but if a compiler doesn't support "__thread" would volatile suffice in some/most/any cases? This issue happens to have caught my attention recently. I think I just observed a situation where essentially this code fails on VMS under CXX but without either __thread or volatile. Sadly, I believe CXX has for a long time implemented something like what I've read in this thread that GCC 4.0 does. I never took advantage of this because I was afraid it wouldn't be portable. .