-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rclcpp_action): Fixed race condition in Client
Some background information: is_ready and take_data are guaranteed to be called in sequence without interruption from another thread. while execute is running, another thread may also call is_ready. The problem was, that is_goal_response_ready, is_result_response_ready, is_cancel_response_ready, is_feedback_ready and is_status_ready were accessed and written from is_ready and execute. This commit fixed this by only using the mentioned variables in is_ready and take_data. execute now only accesses the given pointer and works on this. Signed-off-by: Janosch Machowinski <[email protected]>
- Loading branch information
Janosch Machowinski
authored and
Janosch Machowinski
committed
Jul 31, 2023
1 parent
147238c
commit 91fb1dd
Showing
2 changed files
with
124 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters