Skip to content

[TaskGroup] Towards ABI stability of groups #36228

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 1 commit into from
Mar 3, 2021

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Mar 2, 2021

This changes the C++ TaskGroup into an opaque container, the same way as DefaultActor does.

We then have all implementation inside TaskGroupImpl.

I will define all remaining ABI on TaskGroup tomorrow or tonight, but thanks for this is is all nice and clean.

@@ -46,6 +46,9 @@ enum {
/// The number of words (in addition to the heap-object header)
/// in a default actor.
NumWords_DefaultActor = 10,

/// The number of words in a task group.
NumWords_TaskGroup = 32,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll slim it down a bit, we still have the mutex in there meh

@ktoso ktoso force-pushed the wip-groups-towards-clean-abi branch from 7a63fe4 to aedbbe6 Compare March 2, 2021 11:25
@ktoso
Copy link
Contributor Author

ktoso commented Mar 2, 2021

@swift-ci please smoke test

};
/// Upon a future task's completion, offer it to the task group it belongs to.
void offer(AsyncTask *completed, AsyncContext *context, ExecutorRef executor);
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

so the TaskGroup only contains the actual ABI now 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(more functions to come here)

@ktoso ktoso merged commit 5427986 into swiftlang:main Mar 3, 2021
@ktoso ktoso deleted the wip-groups-towards-clean-abi branch March 3, 2021 02:46
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