-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wjwwood] Updated "Data race fixes" (#2500)
* Fix callback group logic in executor Signed-off-by: Janosch Machowinski <j.machowinski@cellumation.com> * fix: Fixed unnecessary copy of wait_set Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> * fix(executor): Fixed race conditions with rebuild of wait_sets Before this change, the rebuild of wait set would be triggered after the wait set was waken up. With bad timing, this could lead to the rebuild not happening with multi threaded executor. Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> * fix(Executor): Fixed lost of entities rebuild request Signed-off-by: Janosch Machowinski <j.machowinski@cellumation.com> * chore: Added assert for not set callback_group in execute_any_executable Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> * Add test for cbg getting reset Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> Co-authored-by: Janosch Machowinski <j.machowinski@nospam.org> * chore: renamed test cases to snake_case Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> * style Signed-off-by: William Woodall <william@osrfoundation.org> * fixup test to avoid polling and short timeouts Signed-off-by: William Woodall <william@osrfoundation.org> * fix: Use correct notify_waitable_ instance Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> * fix(StaticSingleThreadedExecutor): Added missing special case handling for current_notify_waitable_ Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> * fix(TestCallbackGroup): Fixed test after change to timers Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> --------- Signed-off-by: Janosch Machowinski <j.machowinski@cellumation.com> Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> Signed-off-by: William Woodall <william@osrfoundation.org> Co-authored-by: Janosch Machowinski <j.machowinski@cellumation.com> Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai> Co-authored-by: Janosch Machowinski <j.machowinski@nospam.org>
- Loading branch information
1 parent
dec22a2
commit 90e4511
Showing
7 changed files
with
247 additions
and
73 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
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
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
Oops, something went wrong.