You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Neil Conway (JIRA)" <ji...@apache.org> on 2017/04/10 20:18:41 UTC

[jira] [Commented] (MESOS-7373) Remove thread_local workaround on OSX

    [ https://issues.apache.org/jira/browse/MESOS-7373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963445#comment-15963445 ] 

Neil Conway commented on MESOS-7373:
------------------------------------

Related threads on the dev list:

https://www.mail-archive.com/dev@mesos.apache.org/msg37440.html
https://www.mail-archive.com/dev@mesos.apache.org/msg37027.html


> Remove thread_local workaround on OSX
> -------------------------------------
>
>                 Key: MESOS-7373
>                 URL: https://issues.apache.org/jira/browse/MESOS-7373
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Neil Conway
>            Assignee: Neil Conway
>              Labels: mesosphere
>
> {{include/stout/thread_local.hpp}} in stout contains the following comment:
> {noformat}
> // A wrapper around the thread local storage attribute. The default
> // clang on OSX does not support the c++11 standard `thread_local`
> // intentionally until a higher performance implementation is
> // released. See https://devforums.apple.com/message/1079348#1079348
> // Until then, we use `__thread` on OSX instead.
> // We required that THREAD_LOCAL is only used with POD types as this
> // is a requirement of `__thread`.
> {noformat}
> As of XCode 8, this workaround should no longer be necessary, because Apple's clang supports {{thread_local}} natively -- see http://stackoverflow.com/a/29929949/5327044



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)