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

Iron: Fix data race on parameter event #124

Conversation

mauropasse
Copy link
Collaborator

@mauropasse mauropasse commented Oct 10, 2023

The callback 'on_parameter_event' was internally accessing node_base_, which could be already destroyed.

Cherry pick ros2#2320

We need this because it is possible for one thread to
be handling the on_parameter_event callback while another
one is detaching the node.  This lock will protect that
from happening.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@mauropasse mauropasse force-pushed the mauro/iron-fix-data-race-on-params-event branch from 9f572e5 to 5e89907 Compare October 11, 2023 12:48
@mauropasse mauropasse changed the title Iron fix data race on params event Iron: Fix data race on parameter event Oct 16, 2023
@alsora alsora merged commit 6d4d653 into irobot-ros:irobot/iron Oct 16, 2023
@mauropasse mauropasse deleted the mauro/iron-fix-data-race-on-params-event branch November 8, 2023 16:04
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