Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : David Schwartz Date : Mon Jan 24 2005 08:46 am "Alexander Terekhov" wrote in message news:41F4B867.99D99808@web.de... > > David Schwartz wrote: > [...] >> just have the memory barrier be unconditional. > > It must be in the right place to begin with. Right. It must be after you determine that the initialization is complete but before you access the object. > And associating it with > thread local flag is absolutely pointless. I agree. DS .