-
Notifications
You must be signed in to change notification settings - Fork 430
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
Fix thread safety in LifecycleNode::get_current_state() for Humble #2183
Fix thread safety in LifecycleNode::get_current_state() for Humble #2183
Conversation
@clalancette @fujitatomoya what does the review process and timeline look like for getting this in? I noticed that this PR was added to the Humble Patch Release 4 project. |
@schornakj generally we are now working on the Iron Irwini Release Test for now. but i will try to find some time to do review. let me have a week or two to get back to you. if anyone else are willing to do community review, that would be really appreciated. |
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.
a few minor comments, overall lgtm.
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.
lgtm
@clalancette @ros2/team can I have 2nd review on this before CI? |
@fujitatomoya just checking in, were you able to find another person from the ROS 2 team to give this a second review? |
No not yet, but i do need a second review on this. |
@clalancette do you have some time to review this PR? It would be really great to be able to fix this thread safety issue at the root level. While I've been able to patch or work around this problem in some packages that use |
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.
In short, this is a fantastic backport. Thanks for taking the time to do this.
I've left three really small items to fix. Once those are fixed, I'll go ahead and run CI on this.
@clalancette thank you very much for the review! I just pushed up a commit adding the includes you pointed out. |
Signed-off-by: Joe Schornak <joe.schornak@gmail.com>
Signed-off-by: Joe Schornak <joe.schornak@gmail.com>
Signed-off-by: Joe Schornak <joe.schornak@gmail.com>
Signed-off-by: Joe Schornak <joe.schornak@gmail.com>
Signed-off-by: Joe Schornak <joe.schornak@gmail.com>
Signed-off-by: Joe Schornak <joe.schornak@gmail.com>
Signed-off-by: Joe Schornak <joe.schornak@gmail.com>
Signed-off-by: Joe Schornak <joe.schornak@gmail.com>
CI failed with an error building
Should I rebase my PR branch onto the latest state of |
66dc5f9
to
b5d61a4
Compare
All right, this looks good. Going ahead and merging. We just missed the window for a humble sync, so this will go out with the next patch release (probably 4-6 weeks). |
Awesome!! Thank you for your guidance and help with this fix! |
Thanks for your patience here and for doing the hard work of the backport. |
Implements #2172.
LifecycleNodeInterfaceImpl
from Bugfix 20210810 get current state #1756. It's OK to apply these changes to Humble because they do not modify the public ABI.State::state_handle_
:MutexMap
class to associate a mutex with each instance ofState
.MutexMap
member toState
. This type of change is allowed under REP-0009.