mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Concurrency] Use dispatch cooperative queues when available.
These queues are better suited to the concurrency runtime.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user