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

-- 
_________________________________________
  _  _  | Roland Schwarz
 |_)(_  | aka. speedsnail
 | \__) | mailto:roland.schwarz_at_[hidden]
________| http://www.blackspace.at

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