nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Bakai (JIRA)" <>
Subject [jira] [Created] (MINIFICPP-949) Review our smart pointer usage
Date Fri, 05 Jul 2019 13:01:00 GMT
Daniel Bakai created MINIFICPP-949:

             Summary: Review our smart pointer usage
                 Key: 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

View raw message