[asterisk-bugs] [JIRA] (ASTERISK-25029) Astobj2: Create ao2_weakproxy_ref_object function.
Corey Farrell (JIRA)
noreply at issues.asterisk.org
Wed Apr 29 05:02:33 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Corey Farrell updated ASTERISK-25029:
-------------------------------------
Status: Open (was: Triage)
> Astobj2: Create ao2_weakproxy_ref_object function.
> --------------------------------------------------
>
> Key: ASTERISK-25029
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25029
> Project: Asterisk
> Issue Type: Improvement
> Security Level: None
> Components: Core/AstMM
> Affects Versions: SVN
> Reporter: Corey Farrell
> Assignee: Corey Farrell
> Severity: Minor
>
> This function allows code to run ao2_ref against the real object associated with a weakproxy. It is useful when all of the following conditions are true:
> * You have a pointer to weakproxy.
> * You do not have or need a pointer to the real object.
> * You need to ensure the real object exists and is not destroyed during a process.
> In this case it's wasteful to store a pointer to the real object just for the sake of releasing it later.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list