Skip to content

[Concurrency] Introduce TaskOptionRecord for spawn options #37885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2021

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 11, 2021

Work in progress on adding TaskOptionsRecord to all task creating and waiting.

One such record can be "the executor to use for the spawn or resume" but we can add various new ones in the future.

Currently doing something incredibly silly somewhere where the signatures don't match up... I'll figure it out soon.

@ktoso ktoso marked this pull request as draft June 11, 2021 13:23
@ktoso ktoso force-pushed the wip-task-options branch from ae9e531 to 8cf33bf Compare June 15, 2021 12:02
@ktoso
Copy link
Contributor Author

ktoso commented Jun 17, 2021

@swift-ci please smoke test

@ktoso ktoso force-pushed the wip-task-options branch from 5bc8737 to b869fcf Compare June 17, 2021 08:00
@ktoso ktoso marked this pull request as ready for review June 17, 2021 09:03
@ktoso
Copy link
Contributor Author

ktoso commented Jun 17, 2021

@swift-ci please smoke test

@ktoso ktoso force-pushed the wip-task-options branch from b869fcf to 2a8fc95 Compare June 17, 2021 10:29
@ktoso
Copy link
Contributor Author

ktoso commented Jun 17, 2021

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Jun 17, 2021

@swift-ci please smoke test macOS Platform

@ktoso ktoso force-pushed the wip-task-options branch from 2a8fc95 to dafa5b7 Compare June 17, 2021 14:32
@ktoso
Copy link
Contributor Author

ktoso commented Jun 17, 2021

@swift-ci please smoke test Linux Platform

@ktoso ktoso force-pushed the wip-task-options branch 2 times, most recently from 0f6f6a1 to bc32cda Compare June 17, 2021 15:21
@ktoso
Copy link
Contributor Author

ktoso commented Jun 17, 2021

@swift-ci please smoke test

@DougGregor
Copy link
Member

@swift-ci please smoke test macOS

@ktoso
Copy link
Contributor Author

ktoso commented Jun 18, 2021

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Jun 18, 2021

(macOS CI has a bad day, waiting it out for now)

introduce new options parameter to all task spawning

[Concurrency] ABI for asynclet start to accept options

[Concurrency] fix unittest usages of changed task creation ABI

[Concurrency] introduce constants for parameter indexes in ownership

[Concurrency] fix test/SILOptimizer/closure_lifetime_fixup_concurrency.swift
@ktoso
Copy link
Contributor Author

ktoso commented Jun 21, 2021

@swift-ci please smoke test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the one request left, and otherwise LGTM

@DougGregor
Copy link
Member

Force-merging to unblock progress

@DougGregor DougGregor merged commit 29176fc into swiftlang:main Jun 21, 2021
@ktoso ktoso deleted the wip-task-options branch June 22, 2021 00:12
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.

3 participants