Mon Oct 8 12:39:31 2012

Asterisk developer's documentation


ast_rwlock_info Struct Reference

Structure for rwlock and tracking information. More...

#include <lock.h>


Data Fields

pthread_rwlock_t lock
ast_lock_tracktrack
unsigned int tracking:1


Detailed Description

Structure for rwlock 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 133 of file lock.h.


Field Documentation

pthread_rwlock_t lock

Definition at line 134 of file lock.h.

Referenced by __ast_rwlock_destroy(), __ast_rwlock_init(), __ast_rwlock_rdlock(), __ast_rwlock_timedrdlock(), __ast_rwlock_timedwrlock(), __ast_rwlock_tryrdlock(), __ast_rwlock_trywrlock(), __ast_rwlock_unlock(), and __ast_rwlock_wrlock().

struct ast_lock_track* track

Track which thread holds this lock

Definition at line 136 of file lock.h.

Referenced by __ast_rwlock_destroy(), __ast_rwlock_init(), __ast_rwlock_rdlock(), __ast_rwlock_timedrdlock(), __ast_rwlock_timedwrlock(), __ast_rwlock_tryrdlock(), __ast_rwlock_trywrlock(), __ast_rwlock_unlock(), and __ast_rwlock_wrlock().

unsigned int tracking

Definition at line 137 of file lock.h.

Referenced by __ast_rwlock_destroy(), __ast_rwlock_init(), __ast_rwlock_rdlock(), __ast_rwlock_timedrdlock(), __ast_rwlock_timedwrlock(), __ast_rwlock_tryrdlock(), __ast_rwlock_trywrlock(), __ast_rwlock_unlock(), and __ast_rwlock_wrlock().


The documentation for this struct was generated from the following file:
Generated on Mon Oct 8 12:39:31 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7