Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: device: Fix: Add task handles to manage and free resource #66

Merged

Conversation

RaulTrombin
Copy link
Member

This is required for faster reuse of serial ports, tested on ping-viewer-next auto_baudrate

Comment on lines +111 to +112
self.task_handles.stream_handle.abort();
self.task_handles.sink_handle.abort();
Copy link
Member

@joaoantoniocardoso joaoantoniocardoso Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure they are cancel-safe?

edit: they are, I just checked.

Copy link
Member

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fair!

@RaulTrombin RaulTrombin merged commit 6e63538 into bluerobotics:master Oct 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants