$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [thread] static thread_specific_ptr?
From: Sohail Somani (sohail_at_[hidden])
Date: 2009-02-26 11:05:29
Roland Schwarz wrote:
>
> 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 think any time you see a naked local static, you've gotta think bug
because the only portable way to solve this problem is to use
boost::call_once, afaik anyway.
-- Sohail Somani http://uint32t.blogspot.com