-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Break ring of shared_ptr<Stock> dependencies #1727
Break ring of shared_ptr<Stock> dependencies #1727
Conversation
Thanks! |
@@ -193,6 +193,11 @@ void LazyObjectTest::testNotificationLoop() { | |||
|
|||
#endif | |||
|
|||
// We have produced a ring of dependencies which we break here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use RAII to guarantee that the unregistering happens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe? If we don't get here, though, it means that the test suite already failed. Ok for now, I guess, but feel free to open a PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general 👍
But, now that the PR is merged, is it worth the effort?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be someone's way to spend some time if they get bored and run out of series to watch :)
Solves #1725.