We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e42257e + fa40675 commit 72909bdCopy full SHA for 72909bd
stdlib/public/Concurrency/Task.cpp
@@ -479,7 +479,12 @@ static AsyncTaskAndContext swift_task_create_commonImpl(
479
if (currentTask)
480
jobFlags.setPriority(currentTask->getPriority());
481
else
482
- jobFlags.setPriority(swift_task_getCurrentThreadPriority());
+ // FIXME: Ideally, this should be setting priority based on
483
+ // swift_task_getCurrentThreadPriority(). However, that creates
484
+ // priority differences which lead to different kinds of hangs
485
+ // Temporarily use Unspecified to work around that.
486
+ // See also: PR #37939.
487
+ jobFlags.setPriority(JobPriority::Unspecified);
488
}
489
490
// Figure out the size of the header.
0 commit comments