commit | 27c8df9505fab7ba56ce7c4cd7593a3291dcad68 | [log] [tgz] |
---|---|---|
author | David Grove <groved@us.ibm.com> | Fri Sep 23 17:35:22 2016 -0400 |
committer | David Grove <groved@us.ibm.com> | Fri Sep 23 17:35:22 2016 -0400 |
tree | 10f11b4e836e81a8a51622284f8cec7594a95694 | |
parent | 367bd9591c456876be29e85ef12af60a5d2f882c [diff] |
Add dependency on swiftc for %.o.%.swift rules Detect that swiftc has changed since the Swift file has been compiled and force it to be recompiled. The explicit rm of the target before regenerating it is needed because if the new compiler generates exactly the same bits as the old one the .o file isn't updated and the target gets stuck as being out-of-date. An explicit rm avoids that problem.
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