[asterisk-commits] dhubbard: branch dhubbard/named_processors r107012 - in /team/dhubbard/named_...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Mar 8 23:23:31 CST 2008


Author: dhubbard
Date: Sat Mar  8 23:23:30 2008
New Revision: 107012

URL: http://svn.digium.com/view/asterisk?view=rev&rev=107012
Log:
remove an unused function

Modified:
    team/dhubbard/named_processors/res/sandbox/include/taskprocessor.h
    team/dhubbard/named_processors/res/sandbox/simobject.c
    team/dhubbard/named_processors/res/sandbox/taskprocessor.c

Modified: team/dhubbard/named_processors/res/sandbox/include/taskprocessor.h
URL: http://svn.digium.com/view/asterisk/team/dhubbard/named_processors/res/sandbox/include/taskprocessor.h?view=diff&rev=107012&r1=107011&r2=107012
==============================================================================
--- team/dhubbard/named_processors/res/sandbox/include/taskprocessor.h (original)
+++ team/dhubbard/named_processors/res/sandbox/include/taskprocessor.h Sat Mar  8 23:23:30 2008
@@ -64,6 +64,5 @@
 
 int register_sandbox_taskprocessor_clis(void);
 int unregister_sandbox_taskprocessor_clis(void);
-int wait_for_all_taskprocessors_to_stop(void);
 #endif
 

Modified: team/dhubbard/named_processors/res/sandbox/simobject.c
URL: http://svn.digium.com/view/asterisk/team/dhubbard/named_processors/res/sandbox/simobject.c?view=diff&rev=107012&r1=107011&r2=107012
==============================================================================
--- team/dhubbard/named_processors/res/sandbox/simobject.c (original)
+++ team/dhubbard/named_processors/res/sandbox/simobject.c Sat Mar  8 23:23:30 2008
@@ -271,7 +271,7 @@
 		killflag = !i->_poll_thread_run;
 		ast_mutex_unlock(&i->_taskprocessor_lock);
 	}
-	ast_log(LOG_NOTICE, "purging \'%s\'.\n", i->_name);
+	ast_log(LOG_NOTICE, "task production complete -- \'%s\'.\n", i->_name);
 	i->_is_purged = TRUE;
 	return NULL;
 }

Modified: team/dhubbard/named_processors/res/sandbox/taskprocessor.c
URL: http://svn.digium.com/view/asterisk/team/dhubbard/named_processors/res/sandbox/taskprocessor.c?view=diff&rev=107012&r1=107011&r2=107012
==============================================================================
--- team/dhubbard/named_processors/res/sandbox/taskprocessor.c (original)
+++ team/dhubbard/named_processors/res/sandbox/taskprocessor.c Sat Mar  8 23:23:30 2008
@@ -267,31 +267,6 @@
 	return destroy_taskprocessor_singleton(p);
 }
 	
-int wait_for_all_taskprocessors_to_stop(void)
-{
-	int pending;
-	int stop_waiting = 0;
-	struct taskprocessor_singleton_info* n = NULL;
-
-	while (!stop_waiting) {
-		pending = 0;
-		AST_LIST_LOCK(&_taskprocessor_singletons);
-		if (_taskprocessor_singletons_list_size > 0) 
-		AST_LIST_TRAVERSE(&_taskprocessor_singletons, n, list) {
-			if (!n->_is_purged) {
-				pending++;
-				break;
-			}
-		}
-		AST_LIST_UNLOCK(&_taskprocessor_singletons);
-		if (!pending) {
-			stop_waiting++;
-		}
-		usleep(1000);
-	}
-	return 0;
-}
-
 int destroy_taskprocessor_singleton(struct taskprocessor_singleton_info* t)
 {
 	if (!t) {




More information about the asterisk-commits mailing list