Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Wed Feb 16 2005 04:03 pm "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. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .