Skip to content

Conversation

al45tair
Copy link
Contributor

Added ThreadDonationExecutor and moved the run method to it. Made MainExecutor require SerialExecutor and ThreadDonationExecutor, rather than RunLoopExecutor as previously.

Made RunLoopExecutor implement SerialExecutor and ThreadDonationExecutor, rather than just Executor as previously.

Added default implementations for ExecutorFactory.

Updated comment for withUnsafeExecutorPrivateData.

Make ExecutorJob.Kind non-public. We don't need to expose this, as the allocator support no longer requires us to.

rdar://161400116

Added `ThreadDonationExecutor` and moved the `run` method to it.  Made
`MainExecutor` require `SerialExecutor` and `ThreadDonationExecutor`,
rather than `RunLoopExecutor` as previously.

Made `RunLoopExecutor` implement `SerialExecutor` and
`ThreadDonationExecutor`, rather than just `Executor` as previously.

Added default implementations for `ExecutorFactory`.

Updated comment for `withUnsafeExecutorPrivateData`.

Make `ExecutorJob.Kind` non-public.  We don't need to expose this, as
the allocator support no longer requires us to.

rdar://161400116
@al45tair al45tair requested review from a team and ktoso as code owners September 26, 2025 13:19
@al45tair
Copy link
Contributor Author

@swift-ci Please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant