[asterisk-commits] file: branch 1.6.1 r169871 - in /branches/1.6.1: ./ main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 21 17:28:11 CST 2009
Author: file
Date: Wed Jan 21 17:28:11 2009
New Revision: 169871
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=169871
Log:
Merged revisions 169869 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r169869 | file | 2009-01-21 19:25:27 -0400 (Wed, 21 Jan 2009) | 11 lines
Merged revisions 169867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r169867 | file | 2009-01-21 19:20:47 -0400 (Wed, 21 Jan 2009) | 4 lines
Read lock the contexts to maintain the locking order when we are notified that the state of a device has changed.
(closes issue #13839)
Reported by: mcallist
........
................
Modified:
branches/1.6.1/ (props changed)
branches/1.6.1/main/pbx.c
Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.1/main/pbx.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/main/pbx.c?view=diff&rev=169871&r1=169870&r2=169871
==============================================================================
--- branches/1.6.1/main/pbx.c (original)
+++ branches/1.6.1/main/pbx.c Wed Jan 21 17:28:11 2009
@@ -3302,6 +3302,8 @@
{
struct ast_hint *hint;
struct statechange *sc = datap;
+
+ ast_rdlock_contexts();
AST_RWLIST_RDLOCK(&hints);
AST_RWLIST_TRAVERSE(&hints, hint, list) {
@@ -3340,6 +3342,7 @@
hint->laststate = state; /* record we saw the change */
}
AST_RWLIST_UNLOCK(&hints);
+ ast_unlock_contexts();
ast_free(sc);
return 0;
}
More information about the asterisk-commits
mailing list