-
Notifications
You must be signed in to change notification settings - Fork 593
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
cpp/src/DataStorm/NodeI.cpp
Outdated
@@ -186,45 +186,45 @@ NodeI::createSession( | |||
|
|||
auto self = shared_from_this(); | |||
s->ice_getConnectionAsync( | |||
[=, this](auto connection) mutable | |||
[=](auto connection) mutable |
There was a problem hiding this comment.
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.
cpp/src/DataStorm/NodeI.cpp
Outdated
subscriber->ice_getConnectionAsync( | ||
[=, this](auto connection) | ||
[=](auto connection) |
There was a problem hiding this comment.
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
cpp/src/DataStorm/NodeI.cpp
Outdated
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
This PR fixes capturing of this and self in a few DataStorm lambdas, plus a few minor issues.