Skip to content

Commit c100fe0

Browse files
committed
guard use of enqueueStealer when using actors-as-locks
skip escalation in this case.
1 parent f40d90f commit c100fe0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,9 @@ static void swift_task_enqueueImpl(Job *job, ExecutorRef executor) {
19051905
static void
19061906
swift_actor_escalate(DefaultActorImpl *actor, AsyncTask *task, JobPriority newPriority)
19071907
{
1908+
#if !SWIFT_CONCURRENCY_ACTORS_AS_LOCKS
19081909
return actor->enqueueStealer(task, newPriority);
1910+
#endif
19091911
}
19101912

19111913
SWIFT_CC(swift)

0 commit comments

Comments
 (0)