Boost logo

Boost :

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

Anthony Williams wrote:
> Yes. That's exactly the intended usage. Only the thread that calls
> reset() can access the object passed in.

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

(I remeber a very nasty bug in spirit because of the cited pattern.)


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

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