Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] differences boost and posix using TLS
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-02-02 11:29:46


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 02 February 2009 10:26 am, Thomas Behler wrote:
> Hello,
>
> i am trying to migrate a project which uses posix threads up to using zhe
> boost library.
>
> I still haven't figured out the great differences in using the tread local
> storage.
>
> In posix the tread local memory is stored using keys (set / get functions).
>
> How this is implemented in BOOST ?

With boost::thread_specific_ptr:

http://www.boost.org/doc/libs/1_37_0/doc/html/thread/thread_local_storage.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJhx965vihyNWuA4URAqw3AKCKSUPAH24MjkKKNabPy3p7P6rjogCfW1Ys
hC5lJmESbBamGzwgZYLqIos=
=uT0D
-----END PGP SIGNATURE-----


Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk