mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Conway (JIRA)" <>
Subject [jira] [Created] (MESOS-7373) Remove thread_local workaround on OSX
Date Fri, 07 Apr 2017 22:37:41 GMT
Neil Conway created MESOS-7373:

             Summary: Remove thread_local workaround on OSX
                 Key: MESOS-7373
             Project: Mesos
          Issue Type: Bug
            Reporter: Neil Conway

{{include/stout/thread_local.hpp}} in stout contains the following comment:

// 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
// 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`.

As of XCode 8, this workaround should no longer be necessary, because Apple's clang supports
{{thread_local}} natively -- see

This message was sent by Atlassian JIRA

View raw message