Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : Alexander Terekhov Date : Wed Feb 16 2005 11:40 am David Schwartz wrote: [...] > I am saying that. That is what makes them thread local. The mappings are local. Objects are not. [...] > That's ridiculous. Providing no strictly-conforming code can tell the > difference, POSIX is silent. And strictly conforming POSIX code can't use > the '__thread' specifier. Sure it is extension and no "strictly-conforming code" can use. But extensions are not supposed to break the model, only extend it. > > In any event, many implementations have at least one page that is not > shared by all the threads. This is a common way to, for example, tell which > thread you are. The stuff on those pages isn't addressable by C/POSIX object addresses. It's irrelevant implementation detail. regards, alexander. .