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

Add raw publisher, convert Context to singleton #76

Merged
merged 4 commits into from
Jan 7, 2024

Conversation

mchhoy
Copy link
Contributor

@mchhoy mchhoy commented Dec 14, 2023

Follow up PR to #74

I was seeing some memory corruption in the tests, which seems to be due to multiple Context instances being made (e.g. a double free in rcl_node_fini + other less legible ones intermittantly). Using a singleton fixed this. (It was not exclusively happening on the raw subscriber/publisher stuff, it was a preexisting issue.)

I don't think making Context a singleton should impact anyone using this library?

I can split into 2 PR's if desired

@mchhoy mchhoy changed the title Add raw publisher Add raw publisher, convert Context to singleton Dec 29, 2023
@mchhoy mchhoy marked this pull request as ready for review December 29, 2023 16:41
@m-dahl
Copy link
Collaborator

m-dahl commented Jan 7, 2024

Sorry for the delay! Looks good to me. Thanks for fixing the context issue, it's fine to include it in this pr. I think the context being a singleton shouldn't impact anyone... Let's find out :)

@m-dahl m-dahl merged commit cb87b9c into sequenceplanner:master Jan 7, 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