-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thread safety fixes for footprint (#3875)
* Don't assign bad values to radius, even temporarily. * Thread safety: * Keep same smart pointer to object within a scope. * Revert can_load_messages fixes. those will go in a different PR * There's no easy way to pass references back in a thread-safe way. Have calculateMinAndMaxDistances return values instead. * Revert unnecessary changes "Thread safety:" This reverts commit 98e2f8d. * Protect access to footprint via mutex. * Revert "Protect access to footprint via mutex." This reverts commit 405cc17. * Use atomic assignment for footprint. * Add comment about atomic load/store. * Initialize footprint. If accessed before assigned was returning a NULL reference. --------- Co-authored-by: Leif Terry <leif@peanutrobotics.com>
- Loading branch information
1 parent
06c3550
commit ea1902e
Showing
5 changed files
with
29 additions
and
20 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