summaryrefslogtreecommitdiff
path: root/res/res_indications.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-08-13 15:25:16 +0000
committerMark Spencer <markster@digium.com>2003-08-13 15:25:16 +0000
commit1bb58646de07501c96c53a963820ef70f73d50c5 (patch)
tree3f2cc11c392b1496cf6518e8b6eb99e8b04417a1 /res/res_indications.c
parent4a396046fec3026140078479ff73fe3a98728bee (diff)
Totally revamp thread debugging to support locating and removing deadlocks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_indications.c')
-rwxr-xr-xres/res_indications.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_indications.c b/res/res_indications.c
index 5f039f6c7..0983efbca 100755
--- a/res/res_indications.c
+++ b/res/res_indications.c
@@ -133,7 +133,7 @@ static int handle_show_indications(int fd, int argc, char *argv[])
char buf[256];
int found_country = 0;
- if (ast_pthread_mutex_lock(&tzlock)) {
+ if (ast_mutex_lock(&tzlock)) {
ast_log(LOG_WARNING, "Unable to lock tone_zones list\n");
return 0;
}
@@ -144,7 +144,7 @@ static int handle_show_indications(int fd, int argc, char *argv[])
for (tz=tone_zones; tz; tz=tz->next) {
ast_cli(fd,"%-7.7s %-7.7s %s\n", tz->country, tz->alias, tz->description);
}
- ast_pthread_mutex_unlock(&tzlock);
+ ast_mutex_unlock(&tzlock);
return 0;
}
/* there was a request for specific country(ies), lets humor them */
@@ -174,7 +174,7 @@ static int handle_show_indications(int fd, int argc, char *argv[])
}
if (!found_country)
ast_cli(fd,"No countries matched your criteria.\n");
- ast_pthread_mutex_unlock(&tzlock);
+ ast_mutex_unlock(&tzlock);
return -1;
}