Mon Jun 27 16:51:23 2011

Asterisk developer's documentation


ast_mutex_info Struct Reference

Structure for mutex and tracking information. More...

#include <lock.h>


Data Fields

pthread_mutex_t mutex
ast_lock_tracktrack
unsigned int tracking:1


Detailed Description

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..

Definition at line 121 of file lock.h.


Field Documentation

pthread_mutex_t mutex

Definition at line 122 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(), dummy_start(), handle_show_locks(), and log_show_lock().

struct ast_lock_track* track

Track which thread holds this mutex

Definition at line 124 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().

unsigned int tracking

Definition at line 125 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().


The documentation for this struct was generated from the following file:
Generated on Mon Jun 27 16:51:23 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7