[Boost-bugs] [Boost C++ Libraries] #11687: context - Xcode (Apple clang) and thread_local

Subject: [Boost-bugs] [Boost C++ Libraries] #11687: context - Xcode (Apple clang) and thread_local
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-26 21:26:39


#11687: context - Xcode (Apple clang) and thread_local
-----------------------------------------------+---------------------
 Reporter: contact.me@… | Owner: olli
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: context
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: context, coroutine2, apple, xcode |
-----------------------------------------------+---------------------
 Xcode version 6+ does not ship with support for the keyword thread_local.
 According to apple (https://devforums.apple.com/thread/251372?tstart=0)
 they have no plans of supporting the keyword anytime soon. This leaves the
 library unusable on all Apple platforms.

 I have attempted to fix it here
 (https://github.com/boostorg/context/pull/20), but my implementation is
 flawed and I am not smart enough to know what to do to support this
 library on Apple platforms properly.

 As it stands, context, and subsequently coroutine2 can not be compiled via
 Xcode 6.3, 7, or 7.1.

 Can we bring in boost::thread_specific_ptr for coverage and not rely on
 thread_local until it has full support across all major platforms? If that
 is not possible please point me in the right direction so I may maintain
 and apple specific fork using boost::thread_specific_ptr in place of
 thread_local.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11687>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC