[asterisk-commits] irroot: branch irroot/distrotech-customers-trunk r321562 - /team/irroot/distr...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 2 11:30:05 CDT 2011


Author: irroot
Date: Thu Jun  2 11:29:57 2011
New Revision: 321562

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321562
Log:
Remove silly deadlock avoidance

Modified:
    team/irroot/distrotech-customers-trunk/main/pbx.c

Modified: team/irroot/distrotech-customers-trunk/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-trunk/main/pbx.c?view=diff&rev=321562&r1=321561&r2=321562
==============================================================================
--- team/irroot/distrotech-customers-trunk/main/pbx.c (original)
+++ team/irroot/distrotech-customers-trunk/main/pbx.c Thu Jun  2 11:29:57 2011
@@ -4397,11 +4397,8 @@
 
 		/* Device state changed since last check - notify the watchers */
 
-		while (ao2_trylock(hints)) {
-			ao2_unlock(hint);
-			usleep(1);
-			ao2_lock(hint);
-		}
+		ao2_lock(hints);
+		ao2_lock(hint);
 
 		if (hint->exten == NULL) {
 			/* the extension has been destroyed */




More information about the asterisk-commits mailing list