Subject: Re: [boost] [threads] Unexpected behaviour of Thread loal storage
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2015-04-29 09:08:30
On Wed, Apr 29, 2015 at 3:56 PM, Fu ji <fujimailing_at_[hidden]> wrote:
> Thank you for reply,
> I forget to say that solutionB and solutionC is also dll, so I decided to
> merge solutionA and SolutionC.
> Right now I have SolutionB and SolutionC (here is tls) both are dll.
> The same situation:
> SolutionB I set tls (TLS.reset(uVariable)) - uVariable is integer 2
> Call function from SolutionC and call TLS.get() but there is different
> value than 2.
> But when i return from function to SolutionB and call TLS.get there is
> everything ok (return 2).
> But still no effect, where I made a mistake ?
Is the TLS variable defined in a header which is included in both
SolutionB and C?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk