mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
Merged revisions 118953 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r118953 | tilghman | 2008-05-29 12:20:16 -0500 (Thu, 29 May 2008) | 3 lines Add some debugging code that ensures that when we do deadlock avoidance, we don't lose the information about how a lock was originally acquired. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -297,9 +297,7 @@ static int alsa_text(struct ast_channel *c, const char *text)
|
||||
static void grab_owner(void)
|
||||
{
|
||||
while (alsa.owner && ast_channel_trylock(alsa.owner)) {
|
||||
ast_mutex_unlock(&alsalock);
|
||||
usleep(1);
|
||||
ast_mutex_lock(&alsalock);
|
||||
DEADLOCK_AVOIDANCE(&alsalock);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user