You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Bannier (JIRA)" <ji...@apache.org> on 2016/10/21 12:13:58 UTC

[jira] [Created] (MESOS-6437) Use thread_local instead of __thread under OS X

Benjamin Bannier created MESOS-6437:
---------------------------------------

             Summary: 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


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)