Daniel Bakai created MINIFICPP-949:
--------------------------------------

             Summary: Review our smart pointer usage
                 Key: MINIFICPP-949
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-949
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
            Reporter: Daniel Bakai


* We have to avoid shared_ptr cycles
 * Don’t use shared_ptr indiscriminately, use weak_ptr where ownership is not 
really required
 * Analyze the code or wrap shared_ptr in Debug builds into an object with 
extra accounting to detect shared_ptr cycles


 * It would be better to create an architecture that “just works” instead of 
one where you have to take active action for it to work
 * We shouldn’t leak even if the Connections are not drained



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to