Boost logo

Boost :

Subject: Re: [boost] [threads] Unexpected behaviour of Thread loal storage
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2015-04-30 08:25:30


On Thursday 30 April 2015 14:06:15 Fu ji wrote:
>
> There is a difference beetwen boost tls and tls from win api in this case ?

Boost.Thread TLS is based on the underlying OS API for TLS but it is not
compatible. One essential point of difference is that Boost.Thread TLS
identifies the pointer by its address (this is why duplicating the pointer
breaks your case) while Windows TLS provides a key which can be copied.


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