Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

/libros/node_handle: keep shared pointer to TopicManager and ServiceM…#1630

Closed
cwecht wants to merge 3 commits intoros:melodic-develfrom
cwecht:fix_838
Closed

/libros/node_handle: keep shared pointer to TopicManager and ServiceM…#1630
cwecht wants to merge 3 commits intoros:melodic-develfrom
cwecht:fix_838

Conversation

@cwecht
Copy link
Copy Markdown
Contributor

@cwecht cwecht commented Feb 23, 2019

…anager to avoid boost::lock_error exceptions.

Fixes #838.
This solution does not change the object-layout of NodeHandle.

…anager to avoid boost::lock_error exceptions
@cwecht
Copy link
Copy Markdown
Contributor Author

cwecht commented Feb 25, 2019

Well, this failed because of the flakyness of topic_tools throttle.test ...

@scott-eddy
Copy link
Copy Markdown

This looks good to me

@cwecht
Copy link
Copy Markdown
Contributor Author

cwecht commented Mar 1, 2019

Alternatively, the shared_ptrs could be added NodeHandleBackingCollection. This would also avoid an API break. Since order of destruction of global object can be an issue, this might be a better solution.

@cwecht
Copy link
Copy Markdown
Contributor Author

cwecht commented Mar 4, 2019

The above mentioned alternative is astonishingly simple: cwecht@39b9938

This might actually be a better solution. The solution of this PR relies (probably?) on specific destruction order of globals/statics, which is unfortunate. The alternative version ensures, that the managers live at least as long as any NodeHandle-instance.

@scott-eddy
Copy link
Copy Markdown

scott-eddy commented Mar 18, 2019

@cwecht can you close this in favor of #1656, so it doesn't take up maintainers bandwidth?

@cwecht cwecht closed this Mar 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants