[asterisk-commits] dlee: branch dlee/performance r399640 - /team/dlee/performance/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Sep 23 12:26:34 CDT 2013
Author: dlee
Date: Mon Sep 23 12:26:33 2013
New Revision: 399640
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399640
Log:
Review feedback: task list should be empty before destruction
Modified:
team/dlee/performance/main/taskprocessor.c
Modified: team/dlee/performance/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/performance/main/taskprocessor.c?view=diff&rev=399640&r1=399639&r2=399640
==============================================================================
--- team/dlee/performance/main/taskprocessor.c (original)
+++ team/dlee/performance/main/taskprocessor.c Mon Sep 23 12:26:33 2013
@@ -419,7 +419,6 @@
static void tps_taskprocessor_destroy(void *tps)
{
struct ast_taskprocessor *t = tps;
- struct tps_task *task;
if (!tps) {
ast_log(LOG_ERROR, "missing taskprocessor\n");
@@ -439,9 +438,7 @@
ao2_ref(t->listener, -1);
t->listener = NULL;
}
- while ((task = AST_LIST_REMOVE_HEAD(&t->tps_queue, list))) {
- tps_task_free(task);
- }
+ ast_assert(AST_LIST_EMPTY(&t->tps_queue));
}
/* pop the front task and return it */
More information about the asterisk-commits
mailing list