File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ static DelayedJob *DelayedJobQueue = nullptr;
103
103
104
104
// / Get the next-in-queue storage slot.
105
105
static Job *&nextInQueue (Job *cur) {
106
- return reinterpret_cast <Job*&>(& cur->SchedulerPrivate [NextWaitingTaskIndex]);
106
+ return reinterpret_cast <Job*&>(cur->SchedulerPrivate [Job:: NextWaitingTaskIndex]);
107
107
}
108
108
109
109
// / Insert a job into the cooperative global queue.
@@ -448,13 +448,9 @@ void swift::swift_task_enqueueOnDispatchQueue(Job *job,
448
448
}
449
449
#endif
450
450
451
- #if SWIFT_CONCURRENCY_COOPERATIVE_GLOBAL_EXECUTOR
452
- static HeapObject _swift_mainExecutorIdentity;
453
- #endif
454
-
455
451
ExecutorRef swift::swift_task_getMainExecutor () {
456
452
#if SWIFT_CONCURRENCY_COOPERATIVE_GLOBAL_EXECUTOR
457
- return ExecutorRef::forOrdinary (&_swift_mainExecutorIdentity, nullptr );
453
+ return ExecutorRef::generic ( );
458
454
#else
459
455
return ExecutorRef::forOrdinary (
460
456
reinterpret_cast <HeapObject*>(&_dispatch_main_q),
@@ -464,7 +460,7 @@ ExecutorRef swift::swift_task_getMainExecutor() {
464
460
465
461
bool ExecutorRef::isMainExecutor () const {
466
462
#if SWIFT_CONCURRENCY_COOPERATIVE_GLOBAL_EXECUTOR
467
- return Identity == &_swift_mainExecutorIdentity ;
463
+ return isGeneric () ;
468
464
#else
469
465
return Identity == reinterpret_cast <HeapObject*>(&_dispatch_main_q);
470
466
#endif
You can’t perform that action at this time.
0 commit comments