File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1274,6 +1274,13 @@ static NonDefaultDistributedActorImpl *asImpl(NonDefaultDistributedActor *actor)
1274
1274
/* ******************* NEW DEFAULT ACTOR IMPLEMENTATION ***********************/
1275
1275
/* ****************************************************************************/
1276
1276
1277
+ TaskExecutorRef TaskExecutorRef::fromTaskExecutorPreference (Job *job) {
1278
+ if (auto task = dyn_cast<AsyncTask>(job)) {
1279
+ return task->getPreferredTaskExecutor ();
1280
+ }
1281
+ return TaskExecutorRef::undefined ();
1282
+ }
1283
+
1277
1284
#if !SWIFT_CONCURRENCY_ACTORS_AS_LOCKS
1278
1285
1279
1286
static void traceJobQueue (DefaultActorImpl *actor, Job *first) {
@@ -1320,13 +1327,6 @@ void DefaultActorImpl::scheduleActorProcessJob(
1320
1327
swift_task_enqueueGlobal (job);
1321
1328
}
1322
1329
1323
- TaskExecutorRef TaskExecutorRef::fromTaskExecutorPreference (Job *job) {
1324
- if (auto task = dyn_cast<AsyncTask>(job)) {
1325
- return task->getPreferredTaskExecutor ();
1326
- }
1327
- return TaskExecutorRef::undefined ();
1328
- }
1329
-
1330
1330
void DefaultActorImpl::enqueue (Job *job, JobPriority priority) {
1331
1331
// We can do relaxed loads here, we are just using the current head in the
1332
1332
// atomic state and linking that into the new job we are inserting, we don't
You can’t perform that action at this time.
0 commit comments