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)

Reply via email to