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

Add threaded callbacks for functions of times #6084

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

nilsdeppe
Copy link
Member

Proposed changes

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

@nilsdeppe nilsdeppe requested a review from knelli2 June 12, 2024 14:14
Copy link
Contributor

@knelli2 knelli2 left a comment

Choose a reason for hiding this comment

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

Just a couple things

Comment on lines +102 to +103
template <typename ThreadedAction, typename Proxy, typename... Args>
class ThreadedActionCallback : public Callback {
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a test for these in Unit/Parallel/Test_Callback.cpp. Could you add some there? I know it's a bit more work, but just so we are guaranteed that they are working

Copy link
Member Author

Choose a reason for hiding this comment

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

Not a problem! Done!

Comment on lines 153 to 154
/// GlobalCache which calls the threaded action passed in as a template
/// parameter. The `Args` are moved into the callback.
Copy link
Contributor

Choose a reason for hiding this comment

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

They're forwarded, not moved. There's a difference, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, I'll also update the simple action variant to say forwarded as well!

@knelli2 knelli2 enabled auto-merge June 13, 2024 21:06
@knelli2 knelli2 added the auto-merge GitHub's auto-merge has been enabled for this PR. label Jun 13, 2024
@knelli2 knelli2 merged commit 98ca711 into sxs-collaboration:develop Jun 13, 2024
22 checks passed
@nilsdeppe nilsdeppe deleted the add_threading_18 branch August 6, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge GitHub's auto-merge has been enabled for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants