New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further integration of Dispatch into Foundation #338

Merged
merged 1 commit into from Apr 28, 2016

Conversation

Projects
None yet
3 participants
@seabaylea
Collaborator

seabaylea commented Apr 26, 2016

This makes some minor changes that gets us closer to having Dispatch built and included in CoreFoundation and Foundation, including:

  • Switching CFRunLoop to use the new 4CF functions in libdispatch
    Note that these APIs are only available in the `experimental/foundation' branch of libdispatch.
  • Adding a basic implementation for pthread_main_np()
    There isn't an implementation in Glibc and there isn't a shim today. We should potentially move the implementation to the Glibc overlay.
  • Updated the build scripts to include Dispatch in Foundation as well as CoreFoundation
    This is still commented out as there's a number of compile errors in NSOperation and the incoming NSURLSession code - we should fix those up before uncommenting this code.

The changes should allow anyone to build a toolchain with Dispatch enabled by:

  1. Extracting the experimental/foundation branch of swift-corelibs-libdispatch
  2. Uncommenting the code in build.py
  3. Running a build with the libdispatch and install-libdispatch flags added
Show outdated Hide outdated build.py

@parkera parkera merged commit b98711e into apple:master Apr 28, 2016

@seabaylea seabaylea deleted the seabaylea:build-dispatch branch May 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment