commit | 8de6d9ffa23e057092dd326ba3a528ec5c4ef904 | [log] [tgz] |
---|---|---|
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | Fri Apr 07 17:09:26 2017 -0700 |
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | Fri Apr 07 17:09:26 2017 -0700 |
tree | 1cb06407ad25a03a76723e1c3fc371b83ef0015b | |
parent | a69853fef6e7efbadd6905ced1a5d94489e083c2 [diff] |
libdispatch: Avoid submodules for headers that should not be included libdispatch has an umbrella header, dispatch.h, that should be used for including all of the other headers. This is enforced via __DISPATCH_INDIRECT__. Since it isn't legal to include one of the other headers on their own, it isn't logical to have submodules for them. Moreover, submodules *should* have local visibility (be unaware of the context they're included from); meaning that __DISPATCH_INDIRECT__ will never be defined. Logically, all of the headers are part of a single module/interface. Patch by me & Duncan P. Exon Smith
Grand Central Dispatch (GCD or libdispatch) provides comprehensive support for concurrent code execution on multicore hardware.
libdispatch is currently available on all Darwin platforms. This project aims to make a modern version of libdispatch available on all other Swift platforms. To do this, we will implement as much of the portable subset of the API as possible, using the existing open source C implementation.
libdispatch on Darwin is a combination of logic in the xnu
kernel alongside the user-space Library. The kernel has the most information available to balance workload across the entire system. As a first step, however, we believe it is useful to bring up the basic functionality of the library using user-space pthread primitives on Linux. Eventually, a Linux kernel module could be developed to support more informed thread scheduling.
We are currently early in the development of this project. We began with a mirror of the open source drop that corresponds with OS X El Capitan (10.11) and have ported it to x86_64 Ubuntu 14.04 and 15.10. The next steps are:
For detailed instructions on building and installing libdispatch, see INSTALL.md
For detailed instructions on testing libdispatch, see TESTING.md