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 /codecs/codec_alaw.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 'codecs/codec_alaw.c')
-rwxr-xr-x | codecs/codec_alaw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/codecs/codec_alaw.c b/codecs/codec_alaw.c index 192b112c9..08baba4bd 100755 --- a/codecs/codec_alaw.c +++ b/codecs/codec_alaw.c @@ -26,7 +26,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 Coder/Decoder"; @@ -332,13 +332,13 @@ int unload_module (void) { int res; - ast_pthread_mutex_lock (&localuser_lock); + ast_mutex_lock (&localuser_lock); res = ast_unregister_translator (&lintoalaw); if (!res) res = ast_unregister_translator (&alawtolin); if (localusecnt) res = -1; - ast_pthread_mutex_unlock (&localuser_lock); + ast_mutex_unlock (&localuser_lock); return res; } |