Wed Apr 6 11:30:12 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_track track
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 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().

struct ast_lock_track track

Track which thread holds this mutex

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

unsigned int tracking

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(), and __ast_pthread_mutex_unlock().


The documentation for this struct was generated from the following file:
Generated on Wed Apr 6 11:30:12 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7