[asterisk-commits] mmichelson: branch mmichelson/threadpool r378653 - /team/mmichelson/threadpoo...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 7 16:56:41 CST 2013


Author: mmichelson
Date: Mon Jan  7 16:56:37 2013
New Revision: 378653

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378653
Log:
Add some doxygen and remove an unnecessary unlock.


Modified:
    team/mmichelson/threadpool/main/taskprocessor.c

Modified: team/mmichelson/threadpool/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/threadpool/main/taskprocessor.c?view=diff&rev=378653&r1=378652&r2=378653
==============================================================================
--- team/mmichelson/threadpool/main/taskprocessor.c (original)
+++ team/mmichelson/threadpool/main/taskprocessor.c Mon Jan  7 16:56:37 2013
@@ -143,7 +143,10 @@
 	return pvt->dead;
 }
 
-/* this is the task processing worker function */
+/*!
+ * \brief Function that processes tasks in the taskprocessor
+ * \internal
+ */
 static void *tps_processing_function(void *data)
 {
 	struct ast_taskprocessor_listener *listener = data;
@@ -508,7 +511,6 @@
 	}
 	p = ao2_find(tps_singletons, name, OBJ_KEY);
 	if (p) {
-		ao2_unlock(tps_singletons);
 		return p;
 	}
 	if (create & TPS_REF_IF_EXISTS) {




More information about the asterisk-commits mailing list