[asterisk-bugs] [JIRA] (ASTERISK-25029) Astobj2: Create ao2_weakproxy_ref_object function.
Corey Farrell (JIRA)
noreply at issues.asterisk.org
Wed Apr 29 14:04:33 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Corey Farrell closed ASTERISK-25029.
------------------------------------
Resolution: Fixed
Missed the issue tag on commit message, hash I38a319b83314de75be74207a8771aab269bcca46.
> 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