Asterisk - The Open Source Telephony Project
18.5.0
|
Structure for mutex and tracking information. More...
#include <lock.h>
Data Fields | |
struct ast_lock_track_flags | flags |
pthread_mutex_t | mutex |
struct ast_lock_track * | track |
Structure for mutex and tracking information.
We have tracking information in this structure regardless of DEBUG_THREADS being enabled. The information will just be ignored in the core if a module does not request it..
struct ast_lock_track_flags flags |
Definition at line 147 of file lock.h.
Referenced by __ast_cond_timedwait(), __ast_cond_wait(), __ast_pthread_mutex_destroy(), __ast_pthread_mutex_init(), __ast_pthread_mutex_lock(), __ast_pthread_mutex_trylock(), and __ast_pthread_mutex_unlock().
pthread_mutex_t mutex |
Definition at line 136 of file lock.h.
Referenced by __ast_cond_timedwait(), __ast_cond_wait(), __ast_pthread_mutex_destroy(), __ast_pthread_mutex_init(), __ast_pthread_mutex_lock(), __ast_pthread_mutex_trylock(), __ast_pthread_mutex_unlock(), ast_dump_locks(), ast_get_reentrancy(), ast_log_show_lock(), dummy_start(), and lock_info_destroy().
struct ast_lock_track* track |
Track which thread holds this mutex.
Definition at line 146 of file lock.h.
Referenced by __ast_cond_timedwait(), __ast_cond_wait(), __ast_pthread_mutex_destroy(), __ast_pthread_mutex_init(), __ast_pthread_mutex_lock(), __ast_pthread_mutex_trylock(), __ast_pthread_mutex_unlock(), and append_lock_information().