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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 3 13:24:02 CDT 2009


Author: mmichelson
Date: Thu Sep  3 13:23:58 2009
New Revision: 215998

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=215998
Log:
Sort of unstub the devstate cb for generic monitors.


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

Modified: team/group/CCSS/main/ccss.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=215998&r1=215997&r2=215998
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Thu Sep  3 13:23:58 2009
@@ -989,6 +989,12 @@
 		 */
 		ao2_unlink(cc_monitors, monitor);
 	}
+}
+
+static int cc_devstate_change(void *datap)
+{
+	/* STUB */
+	return 0;
 }
 
 static int cc_do_state_change(void *datap)
@@ -1287,7 +1293,12 @@
 
 static void generic_monitor_devstate_cb(const struct ast_event *event, void *userdata)
 {
-	/* STUB */
+	/* Wow, it's cool that we've picked up on a state change, but we really want
+	 * the actual work to be done in the core's taskprocessor execution thread
+	 * so that all monitor operations can be serialized. Locks?! We don't need
+	 * no steenkin' locks!
+	 */
+	ast_taskprocessor_push(cc_core_taskprocessor, cc_devstate_change, userdata);
 	return;
 }
 




More information about the asterisk-commits mailing list