[asterisk-commits] irroot: branch irroot/distrotech-customers-1.8 r323099 - /team/irroot/distrot...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jun 11 11:44:16 CDT 2011
Author: irroot
Date: Sat Jun 11 11:44:14 2011
New Revision: 323099
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323099
Log:
Remove deadlock avoidance for pickup
Modified:
team/irroot/distrotech-customers-1.8/main/channel.c
Modified: team/irroot/distrotech-customers-1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-1.8/main/channel.c?view=diff&rev=323099&r1=323098&r2=323099
==============================================================================
--- team/irroot/distrotech-customers-1.8/main/channel.c (original)
+++ team/irroot/distrotech-customers-1.8/main/channel.c Sat Jun 11 11:44:14 2011
@@ -6307,12 +6307,8 @@
*/
ao2_lock(channels);
- /* lock the original channel with deadlock avoidance to determine if the masquerade is require or not */
- while (ast_channel_trylock(original)) {
- ao2_unlock(channels);
- usleep(1);
- ao2_lock(channels);
- }
+ /* lock the original channel to determine if the masquerade is require or not */
+ ast_channel_lock(original);
/* This checks to see if the masquerade has already happened or not. There is a
* race condition that exists for this function. Since all pvt and channel locks
More information about the asterisk-commits
mailing list