Skip to content
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

sharded.hh: seperate invoke_on decls from defs #2470

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomershafir
Copy link
Contributor

@tomershafir tomershafir commented Oct 4, 2024

Seperate all invoke_on decls from defs on sharded class template for improved readability and loose coupling, maybe even as preparation for extern template. Also, cluster invoke_on(unsigned id, ...) together with the other variants.

@tomershafir tomershafir marked this pull request as ready for review October 4, 2024 13:48
@@ -784,6 +759,7 @@ sharded<Service>::stop() noexcept {
}

template <typename Service>
inline
Copy link
Member

Choose a reason for hiding this comment

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

inlines aren't necessary for templates, and are a net negative for this compile time oriented function (though in practice, the compiler ignores the inline directive for inlining).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, fixing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will remove inline from templates in sharded.hh on a different PR

Seperate all invoke_on decls from defs on sharded class template for improved readability and loose coupling, maybe even as preparation for `extern template`. Also, and cluster `invoke_on(unsigned id, ...)` together with the other variants.
@tomershafir tomershafir force-pushed the sharded-invoke-on-extract-decls branch from 838de85 to d293b0f Compare October 9, 2024 19:20
@tomershafir tomershafir changed the title sharded.hh: seperate invoke_on decls from defs and add missing inline sharded.hh: seperate invoke_on decls from defs Oct 9, 2024
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.

2 participants