diff options
author | Mark Spencer <markster@digium.com> | 2003-08-13 15:25:16 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-08-13 15:25:16 +0000 |
commit | 1bb58646de07501c96c53a963820ef70f73d50c5 (patch) | |
tree | 3f2cc11c392b1496cf6518e8b6eb99e8b04417a1 /pbx/pbx_gtkconsole.c | |
parent | 4a396046fec3026140078479ff73fe3a98728bee (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 'pbx/pbx_gtkconsole.c')
-rwxr-xr-x | pbx/pbx_gtkconsole.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pbx/pbx_gtkconsole.c b/pbx/pbx_gtkconsole.c index 4a6db3c87..13e29097b 100755 --- a/pbx/pbx_gtkconsole.c +++ b/pbx/pbx_gtkconsole.c @@ -41,7 +41,7 @@ #include "../asterisk.h" #include "../astconf.h" -static pthread_mutex_t verb_lock = AST_MUTEX_INITIALIZER; +static ast_mutex_t verb_lock = AST_MUTEX_INITIALIZER; static pthread_t console_thread; @@ -125,10 +125,10 @@ static void __verboser(char *stuff, int opos, int replacelast, int complete) static void verboser(char *stuff, int opos, int replacelast, int complete) { - ast_pthread_mutex_lock(&verb_lock); + ast_mutex_lock(&verb_lock); /* Lock appropriately if we're really being called in verbose mode */ __verboser(stuff, opos, replacelast, complete); - ast_pthread_mutex_unlock(&verb_lock); + ast_mutex_unlock(&verb_lock); } static void cliinput(void *data, int source, GdkInputCondition ic) |