mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Currently, the only thing in the system that donates a thread to run it is swift_runAndBlockThread, but we'll probably need others. Nothing in the concurrency runtime should block via a semaphore in this configuration. As an outrageous hack, work around the layering problems with using libdispatch from the concurrency library on non-Darwin systems by making those systems use the cooperative global executor. This is only acceptable as a temporary solution for landing this change and setting things onto the right long-term design.
6.6 KiB
6.6 KiB