Subject: Re: [boost] Release managers: Boost.Thread breaking changes in 1.53
From: Artyom Beilis (artyomtnk_at_[hidden])
Date: 2013-01-02 02:35:18
> From: Agustín K-ballo Bergé <kaballo86_at_[hidden]>
> Artyom Beilis wrote:
>> For example two feature that from my point of view C++11 threading library less attractive than
>> even trivial wrap of pthrads library (or just using C API as is):
>> - Read-Write locks
>> - Thread local storage
>> So going to "Standard library" directon is step backward.
>Thread local storage is supported by the language with the new
>`thread_local` storage class specifier. See [dcl.stc]/4
>Agustín K-ballo Bergé.
The problem of C++11 TLS is that it is allowed as specifier
for static variables only which makes it much more limited,
one of the common use cases of TLS is to allow thread local
storage specific to object instance and not to class,
for example I need some cache or for example I want
to have thread-safe object that uses non-thread-safe db
connections and caches them using object specific TLS pointer.
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk