[asterisk-commits] dlee: branch dlee/taskprocessor-optimization r400143 - in /team/dlee/taskproc...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 30 11:05:22 CDT 2013


Author: dlee
Date: Mon Sep 30 11:05:20 2013
New Revision: 400143

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400143
Log:
Comments

Modified:
    team/dlee/taskprocessor-optimization/include/asterisk/sem.h
    team/dlee/taskprocessor-optimization/main/taskprocessor.c

Modified: team/dlee/taskprocessor-optimization/include/asterisk/sem.h
URL: http://svnview.digium.com/svn/asterisk/team/dlee/taskprocessor-optimization/include/asterisk/sem.h?view=diff&rev=400143&r1=400142&r2=400143
==============================================================================
--- team/dlee/taskprocessor-optimization/include/asterisk/sem.h (original)
+++ team/dlee/taskprocessor-optimization/include/asterisk/sem.h Mon Sep 30 11:05:20 2013
@@ -90,6 +90,8 @@
  * \param sem Semaphore to initialize.
  * \param pshared Pass true (nonzero) to share this thread between processes.
  *                Not be supported on all platforms, so be wary!
+ *                But leave the parameter, to be compatible with the POSIX ABI
+ *                in case we need to add support in the future.
  * \param value Initial value of the semaphore.
  *
  * \return 0 on success.

Modified: team/dlee/taskprocessor-optimization/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/taskprocessor-optimization/main/taskprocessor.c?view=diff&rev=400143&r1=400142&r2=400143
==============================================================================
--- team/dlee/taskprocessor-optimization/main/taskprocessor.c (original)
+++ team/dlee/taskprocessor-optimization/main/taskprocessor.c Mon Sep 30 11:05:20 2013
@@ -183,8 +183,8 @@
 	res = ast_sem_getvalue(&pvt->sem, &sem_value);
 	ast_assert(res == 0 && sem_value == 0);
 
-	/* Free the shutdown reference */
-	ao2_ref(listener->tps, -1);
+	/* Free the shutdown reference (see default_listener_shutdown) */
+	ao2_t_ref(listener->tps, -1, "tps-shutdown");
 
 	return NULL;
 }
@@ -223,7 +223,7 @@
 	int res;
 
 	/* Hold a reference during shutdown */
-	ao2_ref(listener->tps, +1);
+	ao2_t_ref(listener->tps, +1, "tps-shutdown");
 
 	ast_taskprocessor_push(listener->tps, default_listener_die, pvt);
 




More information about the asterisk-commits mailing list