Opened 6 years ago
Last modified 5 years ago
#12795 assigned Bugs
thread library - thread_specific_ptr documentation gives obsolete recomendation
Reported by: | Owned by: | viboes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | thread |
Version: | Boost 1.63.0 | Severity: | Cosmetic |
Keywords: | thread_specific_ptr | Cc: |
Description
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.
Change History (3)
comment:1 by , 5 years ago
Component: | Documentation → thread |
---|---|
Owner: | changed from | to
comment:2 by , 5 years ago
Severity: | Optimization → Cosmetic |
---|
comment:3 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
A PR is welcome.