| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
| Data Fields | |
| ao2_destructor_fn | destructor_fn | 
| uint32_t | lockused:1 | 
| Set to 1 when the lock is used if refdebug is enabled. | |
| uint32_t | magic:28 | 
| uint32_t | options:3 | 
| The ao2 object option flags. | |
| int32_t | ref_counter | 
| void * | weakptr | 
astobj2 objects are always preceded by this data structure, which contains a reference counter, option flags and a pointer to a destructor. The refcount is used to decide when it is time to invoke the destructor. The magic number is used for consistency check.
| ao2_destructor_fn destructor_fn | 
Definition at line 55 of file astobj2.c.
Referenced by __ao2_ref(), and internal_ao2_alloc().
| uint32_t lockused | 
Set to 1 when the lock is used if refdebug is enabled.
Definition at line 77 of file astobj2.c.
Referenced by __ao2_lock(), __ao2_ref(), and __ao2_trylock().
| uint32_t magic | 
Definition at line 93 of file astobj2.c.
Referenced by __ao2_get_weakproxy(), __ao2_ref(), __ao2_weakproxy_alloc(), __ao2_weakproxy_get_object(), __ao2_weakproxy_ref_object(), __ao2_weakproxy_set_object(), ao2_weakproxy_subscribe(), ao2_weakproxy_unsubscribe(), internal_ao2_alloc(), and log_bad_ao2().
| uint32_t options | 
The ao2 object option flags.
lockused and magic. Definition at line 70 of file astobj2.c.
Referenced by __adjust_lock(), __ao2_lock(), __ao2_ref(), __ao2_trylock(), __ao2_unlock(), ao2_object_get_lockaddr(), ao2_options_get(), and internal_ao2_alloc().
| int32_t ref_counter | 
Number of references held for this object
Definition at line 63 of file astobj2.c.
Referenced by __ao2_ref(), and internal_ao2_alloc().
| void* weakptr | 
This field is used for astobj2 and ao2_weakproxy objects to reference each other
Definition at line 57 of file astobj2.c.
Referenced by __ao2_get_weakproxy(), __ao2_ref(), __ao2_weakproxy_get_object(), __ao2_weakproxy_ref_object(), __ao2_weakproxy_set_object(), and ao2_weakproxy_subscribe().