[Concurrency] Use dispatch cooperative queues when available.

These queues are better suited to the concurrency runtime.
This commit is contained in:
Mike Ash
2022-06-09 17:01:35 -04:00
parent af276b77f5
commit 96e965a359
4 changed files with 37 additions and 4 deletions

View File

@@ -242,6 +242,12 @@ bool swift_COWChecksEnabled() {
return runtime::environment::SWIFT_DEBUG_ENABLE_COW_CHECKS();
}
SWIFT_RUNTIME_STDLIB_SPI bool concurrencyEnableCooperativeQueues() {
return runtime::environment::
SWIFT_DEBUG_CONCURRENCY_ENABLE_COOPERATIVE_QUEUES();
}
SWIFT_RUNTIME_STDLIB_SPI bool concurrencyEnableJobDispatchIntegration() {
return runtime::environment::
SWIFT_ENABLE_ASYNC_JOB_DISPATCH_INTEGRATION();