I don't think anything in the standard guarantees thread safety, but GCC does. I don't know much about the performance overhead of that though. Here's a particularly scary document related to this topic :

http://www.aristeia.com/Papers/DDJ_Jul_Aug_2004_revised.pdf