344 Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : David Schwartz Date : Wed Feb 16 2005 08:32 am "Marcin 'Qrczak' Kowalczyk" wrote in message news:87wtt8o8ct.fsf@qrnik.zagroda... > "David Schwartz" writes: >> Umm, it's totally obvious. For your method, every reference to >> thread-specific data (assuming you don't cache the address) requires >> figuring out which thread you are to calculate the address. > Calculating the address can be done by reading from a page which > appears to have different contents among threads. So it's not more > costly than one extra dereference. That was *MY* point! He's saying you can't do it that way because "threads share address space by definition". DS . 0