File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ static constexpr size_t globalQueueCacheCount =
266
266
static_cast <size_t >(JobPriority::UserInteractive) + 1;
267
267
static std::atomic<dispatch_queue_t > globalQueueCache[globalQueueCacheCount];
268
268
269
- #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || defined(__linux__ )
269
+ #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || ! defined(__APPLE__ )
270
270
extern " C" void dispatch_queue_set_width (dispatch_queue_t dq, long width);
271
271
#endif
272
272
@@ -286,7 +286,7 @@ static dispatch_queue_t getGlobalQueue(JobPriority priority) {
286
286
if (SWIFT_LIKELY (queue))
287
287
return queue;
288
288
289
- #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || defined(__linux__ )
289
+ #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || ! defined(__APPLE__ )
290
290
const int DISPATCH_QUEUE_WIDTH_MAX_LOGICAL_CPUS = -3 ;
291
291
292
292
// Create a new cooperative concurrent queue and swap it in.
You can’t perform that action at this time.
0 commit comments