From 1bb58646de07501c96c53a963820ef70f73d50c5 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 13 Aug 2003 15:25:16 +0000 Subject: 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 --- codecs/codec_a_mu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'codecs/codec_a_mu.c') diff --git a/codecs/codec_a_mu.c b/codecs/codec_a_mu.c index 3d1496c6c..4b6634262 100755 --- a/codecs/codec_a_mu.c +++ b/codecs/codec_a_mu.c @@ -27,7 +27,7 @@ #define BUFFER_SIZE 8096 /* size for the translation buffers */ -static pthread_mutex_t localuser_lock = AST_MUTEX_INITIALIZER; +static ast_mutex_t localuser_lock = AST_MUTEX_INITIALIZER; static int localusecnt = 0; static char *tdesc = "A-law and Mulaw direct Coder/Decoder"; @@ -274,13 +274,13 @@ int unload_module (void) { int res; - ast_pthread_mutex_lock (&localuser_lock); + ast_mutex_lock (&localuser_lock); res = ast_unregister_translator (&ulawtoalaw); if (!res) res = ast_unregister_translator (&alawtoulaw); if (localusecnt) res = -1; - ast_pthread_mutex_unlock (&localuser_lock); + ast_mutex_unlock (&localuser_lock); return res; } -- cgit v1.2.3