Subject: Re: [boost] [threads] Unexpected behaviour of Thread loal storage
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2015-04-30 05:58:49
On Thursday 30 April 2015 11:05:05 Fu ji wrote:
> Thank you for help Andrey but it's still not working.
> Right now I sipmlify it to minimum, in SolutionC (dll) in Include (tls.h) I
> extern __declspec(dllexport) boost::thread_specific_ptr<int>
> in the same soltuion but in Src i have tls.cpp with:
> __declspec(dllexport) boost::thread_specific_ptr<int> ThreadLocalStorage;
> and this is ok, compile with any problems.
> SolutionB(dll) in file.pp I have:
> __declspec(dllimport) boost::thread_specific_ptr<int> ThreadLocalStorage;
> and right now I have a different issue, after compile, run I try to change
> value of tls in SolutionB in reset funtion I have assertion. Maybe you have
> some idea why ?
No. What kind of assertion?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk