Asterisk - The Open Source Telephony Project
21.4.1
|
Data Fields | |
ao2_destructor_fn | destructor_fn |
uint32_t | lockused:1 |
Set to 1 when the lock is used if refdebug is enabled. More... | |
uint32_t | magic:28 |
uint32_t | options:3 |
The ao2 object option flags. More... | |
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.
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(), and __ao2_trylock().
uint32_t options |
The ao2 object option flags.
lockused
and magic
. Definition at line 70 of file astobj2.c.
Referenced by __ao2_lock(), __ao2_trylock(), __ao2_unlock(), ao2_object_get_lockaddr(), and ao2_options_get().
int32_t ref_counter |
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_weakproxy_subscribe().