[Boost-bugs] [Boost C++ Libraries] #12795: thread library - thread_specific_ptr documentation gives obsolete recomendation

Subject: [Boost-bugs] [Boost C++ Libraries] #12795: thread library - thread_specific_ptr documentation gives obsolete recomendation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-27 09:37:42


#12795: thread library - thread_specific_ptr documentation gives obsolete
recomendation
--------------------------------------------+---------------------------
 Reporter: Oleksandr Guteniev <gutenev@…> | Owner: matias
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Documentation
  Version: Boost 1.63.0 | Severity: Optimization
 Keywords: thread_specific_ptr |
--------------------------------------------+---------------------------
 thread_specific_ptr documentation says

 ''Though compilers often provide this facility in the form of extensions
 to the declaration syntax (such as _declspec(thread) or thread annotations
 on static or namespace-scope variable declarations), such support is non-
 portable, and is often limited in some way, such as only supporting POD
 types.''

 Now as we have portable '''thread_local''' in current compilers, it should
 be prefered to use '''thread_local''', since thread_specific_ptr has known
 performance limitation.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12795>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC