[asterisk-commits] mmichelson: branch group/CCSS r247894 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 19 08:57:25 CST 2010


Author: mmichelson
Date: Fri Feb 19 08:57:21 2010
New Revision: 247894

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=247894
Log:
Extension monitors' child_dialstrings list needs no lock.

In all cases, the elements of the list are protected by the monitor's list lock.


Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=247894&r1=247893&r2=247894
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Fri Feb 19 08:57:21 2010
@@ -1331,7 +1331,7 @@
  * \brief Private data for an extension monitor
  */
 struct extension_monitor_pvt {
-	AST_LIST_HEAD(, extension_child_dialstring) child_dialstrings;
+	AST_LIST_HEAD_NOLOCK(, extension_child_dialstring) child_dialstrings;
 };
 
 static void cc_extension_monitor_destructor(void *private_data)
@@ -1539,7 +1539,7 @@
 	if (!ext_pvt) {
 		return NULL;
 	}
-	AST_LIST_HEAD_INIT(&ext_pvt->child_dialstrings);
+	AST_LIST_HEAD_INIT_NOLOCK(&ext_pvt->child_dialstrings);
 	return ext_pvt;
 }
 




More information about the asterisk-commits mailing list