[ 
https://issues.apache.org/jira/browse/MESOS-6437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bannier updated MESOS-6437:
------------------------------------
    Labels: osx tech-debt  (was: osx)

> Use thread_local instead of __thread under OS X
> -----------------------------------------------
>
>                 Key: MESOS-6437
>                 URL: https://issues.apache.org/jira/browse/MESOS-6437
>             Project: Mesos
>          Issue Type: Improvement
>          Components: stout
>            Reporter: Benjamin Bannier
>              Labels: osx, tech-debt
>
> stout's {{THREAD_LOCAL}} was introduced as an abstraction since Apple's C++ 
> toolchain didn't support {{thread_local}} at the time. It uses the extension 
> {{__thread}} under OS X, so we cannot create non-POD thread-local vars.
> With Xcode-8 (i.e., with Sierra) and above Apple's toolchain does support 
> {{thread_local}}, and we should eventually e.g., remove the {{THREAD_LOCAL}} 
> abstraction.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to