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

Ref. loop created and broken #54

Open
mdavidsaver opened this issue Apr 12, 2017 · 0 comments
Open

Ref. loop created and broken #54

mdavidsaver opened this issue Apr 12, 2017 · 0 comments

Comments

@mdavidsaver
Copy link
Contributor

From the discussion in epics-base/pvAccessCPP#60 I've looked for code using PVA.

@msekoranja states that a Requester should never hold a strong reference (shared_ptr) to the associated Operation. Doing so creates a reference loop which must be explicitly broken as the Operation holds a strong ref. to its Requester. For example, in testTop/dbPv/src/testDbPv.cpp where MyRequester does so for both Channel and ChannelGet. I don't think there is a leak as ->destroy() is called to explicitly break the loop. Still, one of the few example someone might find, and it's not best practice.

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

No branches or pull requests

1 participant