Boost logo

Boost :

Subject: Re: [boost] [thread] static thread_specific_ptr?
From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2009-02-26 03:29:39

Roland Schwarz wrote:
> Does this mean you have solved the initialization problem for
> local statics? i.e. you made this thread-safe for every compiler?

Sorry, the shown usage pattern of course is not necessarily
usgae as a local static.

Nevertheless the question arises if the usage as a local
static is thread safe. I.e. in the example shown struct X
should live as a global variable in general. (I.e. if there
are no provisions in thread_specific_ptr that make it safe.)

  _  _  | Roland Schwarz
 |_)(_  | aka. speedsnail
 | \__) | mailto:roland.schwarz_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at