-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race between timeout and transform ready callback (#143)
* Add test for race in tf2_ros::Buffer Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix race between timeout and transform ready callback The timer-request handle map is used to check if the promise to the user has already been set. For the transformable request callback, we loop over the values of the map to check if the request is still valid. Alternatively, we could implement a bi-directional map for efficiency, but I don't expect the number of entries in the timer-request map to be large so it seems like a pre-mature optimization. Fixes #141 Signed-off-by: Jacob Perron <jacob@openrobotics.org>
- Loading branch information
1 parent
fccfd98
commit 4146027
Showing
2 changed files
with
81 additions
and
8 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