-
Notifications
You must be signed in to change notification settings - Fork 310
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
Wrong place to insert the lock? #1959
Comments
You are totally right! |
@saikishor Just curious, what exactly are you protecting with |
Hello! For Humble, we are trying to protect the read and write methods to access the object before it is constructed completely or configured. ros2_control/hardware_interface/src/resource_manager.cpp Lines 1234 to 1280 in 6a8053e
That is the reason, we would need this mutex here. For rolling on, it might not be needed as it is handled individually in each component |
fixed with #1960 |
The fix in #1960 is merged. I will go ahead and close this |
The PR #1599 which backports #1451 failed to insert the lock in the right place.
ros2_control/hardware_interface/src/resource_manager.cpp
Lines 687 to 691 in 6a8053e
This means that when
load_and_initialize_components
istrue
the lock is taken, but the rest of the block will be executed regardless.Or, is it intended fix?
@destogl Please confirm.
The text was updated successfully, but these errors were encountered: