[asterisk-commits] irroot: branch irroot/distrotech-customers-1.8 r321549 - /team/irroot/distrot...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 2 00:08:19 CDT 2011
Author: irroot
Date: Thu Jun 2 00:08:12 2011
New Revision: 321549
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321549
Log:
Fix Deadlock avoidance added for hint/hints
Modified:
team/irroot/distrotech-customers-1.8/main/pbx.c
Modified: team/irroot/distrotech-customers-1.8/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-1.8/main/pbx.c?view=diff&rev=321549&r1=321548&r2=321549
==============================================================================
--- team/irroot/distrotech-customers-1.8/main/pbx.c (original)
+++ team/irroot/distrotech-customers-1.8/main/pbx.c Thu Jun 2 00:08:12 2011
@@ -4283,11 +4283,10 @@
/* Device state changed since last check - notify the watchers */
- ao2_lock(hints);
- while (ao2_trylock(hint)) {
- ao2_unlock(hints);
+ while (ao2_trylock(hints)) {
+ ao2_unlock(hint);
usleep(1);
- ao2_lock(hints);
+ ao2_lock(hint);
}
if (hint->exten == NULL) {
More information about the asterisk-commits
mailing list