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

DataStorm lambda capture fixes #3174

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Conversation

pepone
Copy link
Member

@pepone pepone commented Nov 21, 2024

This PR fixes capturing of this and self in a few DataStorm lambdas, plus a few minor issues.

Copy link
Member

@externl externl left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Member

@bernardnormier bernardnormier left a comment

Choose a reason for hiding this comment

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

Looks good.

@@ -186,45 +186,45 @@ NodeI::createSession(

auto self = shared_from_this();
s->ice_getConnectionAsync(
[=, this](auto connection) mutable
[=](auto connection) mutable
Copy link
Member

Choose a reason for hiding this comment

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

I'd rather put the self in the capture like you do elsewhere.

subscriber->ice_getConnectionAsync(
[=, this](auto connection)
[=](auto connection)
Copy link
Member

Choose a reason for hiding this comment

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

same here, put self in the capture

@@ -334,7 +330,7 @@ NodeI::createPublisherSession(NodePrx publisher, const Ice::ConnectionPtr& con,

auto self = shared_from_this();
p->ice_getConnectionAsync(
[=, this](auto connection)
[=](auto connection)
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@pepone pepone merged commit be1ca06 into zeroc-ice:main Nov 25, 2024
19 checks passed
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this pull request Jan 1, 2025
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