Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-04-07 07:09:33


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk