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 @@ -275,7 +275,7 @@ static constexpr size_t globalQueueCacheCount =
275275 static_cast <size_t >(JobPriority::UserInteractive) + 1 ;
276276static std::atomic<dispatch_queue_t > globalQueueCache[globalQueueCacheCount];
277277
278- #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || defined(__linux__ )
278+ #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || ! defined(__apple__ )
279279extern " C" void dispatch_queue_set_width (dispatch_queue_t dq, long width);
280280#endif
281281
@@ -295,7 +295,7 @@ static dispatch_queue_t getGlobalQueue(JobPriority priority) {
295295 if (SWIFT_LIKELY (queue))
296296 return queue;
297297
298- #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || defined(__linux__ )
298+ #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || ! defined(__apple__ )
299299 const int DISPATCH_QUEUE_WIDTH_MAX_LOGICAL_CPUS = -3 ;
300300
301301 // Create a new cooperative concurrent queue and swap it in.
You can’t perform that action at this time.
0 commit comments