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

Move to arc #7

Merged
merged 4 commits into from
Sep 6, 2024
Merged

Conversation

joaoantoniocardoso
Copy link
Member

The idea of this change is to prepare the drivers to have multiple callbacks, which will be used as filters. Why? Because instead of copying the 300 bytes of data for each filter and for each channel's subscriber, we use a smart pointer.

The main drawback is that this Arc can cause a memory leak if the implementation of both Drivers and their callbacks clones it to a forever-living entity, like a loop task or a task that gets locked somehow.

@patrickelectric patrickelectric merged commit 60112ce into bluerobotics:master Sep 6, 2024
8 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