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 =
275
275
static_cast <size_t >(JobPriority::UserInteractive) + 1;
276
276
static std::atomic<dispatch_queue_t > globalQueueCache[globalQueueCacheCount];
277
277
278
- #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || defined(__linux__ )
278
+ #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || ! defined(__apple__ )
279
279
extern " C" void dispatch_queue_set_width (dispatch_queue_t dq, long width);
280
280
#endif
281
281
@@ -295,7 +295,7 @@ static dispatch_queue_t getGlobalQueue(JobPriority priority) {
295
295
if (SWIFT_LIKELY (queue))
296
296
return queue;
297
297
298
- #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || defined(__linux__ )
298
+ #if defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT) || ! defined(__apple__ )
299
299
const int DISPATCH_QUEUE_WIDTH_MAX_LOGICAL_CPUS = -3 ;
300
300
301
301
// Create a new cooperative concurrent queue and swap it in.
You can’t perform that action at this time.
0 commit comments