Subject: Re: [boost] [threads] Unexpected behaviour of Thread loal storage
From: Fu ji (fujimailing_at_[hidden])
Date: 2015-04-30 05:05:05
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 ?
Best regards and once again thank you for help.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk