[asterisk-commits] file: trunk r389132 - /trunk/main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat May 18 21:21:48 CDT 2013
Author: file
Date: Sat May 18 21:21:44 2013
New Revision: 389132
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389132
Log:
Don't hold the outgoing lock for a prolonged period of time as it may block the originator.
Modified:
trunk/main/pbx.c
Modified: trunk/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/pbx.c?view=diff&rev=389132&r1=389131&r2=389132
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Sat May 18 21:21:44 2013
@@ -9977,7 +9977,6 @@
return NULL;
}
- ast_mutex_lock(&outgoing->lock);
if (!ast_strlen_zero(outgoing->app)) {
struct ast_app *app = pbx_findapp(outgoing->app);
@@ -10012,6 +10011,7 @@
}
/* Notify anyone else again that may be interested that execution is complete */
+ ast_mutex_lock(&outgoing->lock);
outgoing->executed = 1;
ast_cond_signal(&outgoing->cond);
ast_mutex_unlock(&outgoing->lock);
More information about the asterisk-commits
mailing list