
7 Apr
2006
7 Apr
'06
11:09 a.m.
Felipe Magno de Almeida wrote:
It seems to me that thread_specific_ptr has a broken interface and documentation, since it doesnt address the local static thread-safety issue. Which leads users to use it erroneously.
Whether local statics are thread-safe is implementation dependent, and is not limited to thread_specific_ptr. _Any_ dynamically initialized local static can lead to the failure you described.