Skip to content

Commit

Permalink
fix: Fixed race condition in action server between is_ready and take" (
Browse files Browse the repository at this point in the history
…ros2#2495)

Some background information: is_ready, take_data and execute data
may be called from different threads in any order. The code in the old
state expected them to be called in series, without interruption.
This lead to multiple race conditions, as the state of the pimpl objects
was altered by the three functions in a non thread safe way.

Co-authored-by: William Woodall <william@osrfoundation.org>
Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
  • Loading branch information
2 people authored and Janosch Machowinski committed May 14, 2024
1 parent d599f9e commit d0610d6
Show file tree
Hide file tree
Showing 2 changed files with 433 additions and 241 deletions.
Loading

0 comments on commit d0610d6

Please sign in to comment.