|
Asterisk - The Open Source Telephony Project GIT-master-9647a4f
|
Functions implementing ao2_global_obj routines. More...

Go to the source code of this file.
Functions | |
| void * | __ao2_global_obj_ref (struct ao2_global_obj *holder, const char *tag, const char *file, int line, const char *func, const char *name) |
| void * | __ao2_global_obj_replace (struct ao2_global_obj *holder, void *obj, const char *tag, const char *file, int line, const char *func, const char *name) |
| int | __ao2_global_obj_replace_unref (struct ao2_global_obj *holder, void *obj, const char *tag, const char *file, int line, const char *func, const char *name) |
Functions implementing ao2_global_obj routines.
Definition in file astobj2_global.c.
| void * __ao2_global_obj_ref | ( | struct ao2_global_obj * | holder, |
| const char * | tag, | ||
| const char * | file, | ||
| int | line, | ||
| const char * | func, | ||
| const char * | name | ||
| ) |
Definition at line 72 of file astobj2_global.c.
References __ao2_ref(), __ast_rwlock_rdlock(), __ast_rwlock_unlock(), ast_assert, ast_log, ao2_global_obj::lock, LOG_ERROR, name, NULL, and ao2_global_obj::obj.
| void * __ao2_global_obj_replace | ( | struct ao2_global_obj * | holder, |
| void * | obj, | ||
| const char * | tag, | ||
| const char * | file, | ||
| int | line, | ||
| const char * | func, | ||
| const char * | name | ||
| ) |
Definition at line 33 of file astobj2_global.c.
References __ao2_ref(), __ast_rwlock_unlock(), __ast_rwlock_wrlock(), ast_assert, ast_log, ao2_global_obj::lock, LOG_ERROR, name, NULL, and ao2_global_obj::obj.
Referenced by __ao2_global_obj_replace_unref().
| int __ao2_global_obj_replace_unref | ( | struct ao2_global_obj * | holder, |
| void * | obj, | ||
| const char * | tag, | ||
| const char * | file, | ||
| int | line, | ||
| const char * | func, | ||
| const char * | name | ||
| ) |
Definition at line 60 of file astobj2_global.c.
References __ao2_global_obj_replace(), __ao2_ref(), and name.