aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-03 18:26:51 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-03 18:26:51 +0000
commit869f8f957397b54cefd8c618a7655081b6d3b0ac (patch)
tree96804416e94a5415a44f5ae0e03b3d2417c4a544 /utils
parentcf2e050e19cb3acbd24f3ed35568c2d4c60cbfcf (diff)
Add lock tracking for rwlocks. Previously, lock.h only had the ability to
hold tracking information for mutexes. Now, the "core show locks" output will output information about who is holding a rwlock when a thread is waiting on it. (closes issue #11279) Reported by: ys Patches: trunk_lock_utils.v8.diff uploaded by ys (license 281) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120064 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-rw-r--r--utils/ael_main.c6
-rw-r--r--utils/conf2ael.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/utils/ael_main.c b/utils/ael_main.c
index 166fefb65..7699e07a8 100644
--- a/utils/ael_main.c
+++ b/utils/ael_main.c
@@ -587,6 +587,12 @@ void ast_store_lock_info(enum ast_lock_type type, const char *filename,
int line_num, const char *func, const char *lock_name, void *lock_addr, struct ast_bt *bt)
{
}
+
+int ast_bt_get_addresses(struct ast_bt *bt)
+{
+ return 0;
+}
+
#else
void ast_remove_lock_info(void *lock_addr)
{
diff --git a/utils/conf2ael.c b/utils/conf2ael.c
index a55a79512..d2251a41e 100644
--- a/utils/conf2ael.c
+++ b/utils/conf2ael.c
@@ -714,6 +714,12 @@ void ast_store_lock_info(enum ast_lock_type type, const char *filename,
int line_num, const char *func, const char *lock_name, void *lock_addr, struct ast_bt *bt)
{
}
+
+int ast_bt_get_addresses(struct ast_bt *bt)
+{
+ return 0;
+}
+
#else
void ast_remove_lock_info(void *lock_addr)
{