Opened 6 years ago

Last modified 5 years ago

#12795 assigned Bugs

thread library - thread_specific_ptr documentation gives obsolete recomendation

Reported by: Oleksandr Guteniev <gutenev@…> 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 anonymous, 5 years ago

Component: Documentationthread
Owner: changed from Matias Capeletto to Anthony Williams

comment:2 by viboes, 5 years ago

Severity: OptimizationCosmetic

A PR is welcome.

comment:3 by viboes, 5 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned
Note: See TracTickets for help on using tickets.