Boost logo

Boost Users :

Subject: Re: [Boost-users] [Thread] TLS / locking ?
From: beet (r.berlich_at_[hidden])
Date: 2013-11-24 13:14:12


Am 24.11.13 19:09, schrieb Klaim - Joël Lamotte:
> My understanding is that the point of thread-local objects is to allow
> avoiding any kind of locking
> when you know that an object have to be called exclusively from a
> specific thread and
> that each thread using that object will have it's own copy.
>
> So no there is no locking. However it is not clear if you are asking
> about Boost.Thread thread-local
> smart pointer utility, or C++11 thread_local language feature?

Hi,

the question actually referred to Boost.Thread thread-local smart
pointer utility. I cannot use C++11, and Boost is (as is so often the
case) the only way to get portable, advanced functionality with older
C++ standards.

Best Regards,
Beet


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net