Summary: | ASTERISK-25029: Astobj2: Create ao2_weakproxy_ref_object function. | ||
Reporter: | Corey Farrell (coreyfarrell) | Labels: | |
Date Opened: | 2015-04-29 04:56:32 | Date Closed: | 2015-04-29 14:03:59 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Core/AstMM |
Versions: | SVN | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | 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. | ||
Comments: | By: Corey Farrell (coreyfarrell) 2015-04-29 14:03:59.627-0500 Missed the issue tag on commit message, hash I38a319b83314de75be74207a8771aab269bcca46. |