replace detached spin thread with std::jthread#200
Open
ahcorde wants to merge 4 commits into
Open
Conversation
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Contributor
Author
|
friendly ping @asymingt |
asymingt
reviewed
Jun 22, 2026
| char c; | ||
|
|
||
| std::thread{std::bind(&TeleopTurtle::spin, this)}.detach(); | ||
| // Spin the node on a background thread. std::jthread joins automatically |
There was a problem hiding this comment.
Claude is explaining the change it made to you via this comment. To be committed into the code it needs to add texture to what's implemented in the current code revision. So, please remove the unlike the previous detach() which raced shutdown from this comment.
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
Contributor
Author
|
Pulls: #200 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
replaced teleop's detached spin thread and made running atomic, fixing a shutdown use-after-free race and signal-handle
@asymingt FYI
Claude Opus 4.7