Modify

Ticket #11687 (closed Bugs: wontfix)

Opened 19 months ago

Last modified 5 months ago

context - Xcode (Apple clang) and thread_local

Reported by: contact.me@… Owned by: olli
Milestone: To Be Determined Component: context
Version: Boost 1.59.0 Severity: Problem
Keywords: context, coroutine2, apple, xcode Cc:

Description

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.

Attachments

Change History

comment:1 Changed 12 months ago by olli

another developer is dealing with the thread_local issue on MAC - maybe we could add the workaround soon.

comment:2 Changed 5 months ago by olli

  • Status changed from new to closed
  • Resolution set to fixed

I think we have to wait till Apple adds thread_local to Xcode.

comment:3 Changed 5 months ago by olli

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:4 Changed 5 months ago by olli

  • Status changed from reopened to closed
  • Resolution set to wontfix
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.