Boost logo

Boost :

Subject: Re: [boost] [threads] Unexpected behaviour of Thread loal storage
From: Fu ji (fujimailing_at_[hidden])
Date: 2015-04-29 08:56:24


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 ?


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