[asterisk-commits] dhubbard: trunk r124707 - /trunk/main/taskprocessor.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 23 10:24:05 CDT 2008
Author: dhubbard
Date: Mon Jun 23 10:24:05 2008
New Revision: 124707
URL: http://svn.digium.com/view/asterisk?view=rev&rev=124707
Log:
make solaris happy...pointed out by snuff-home on IRC
Modified:
trunk/main/taskprocessor.c
Modified: trunk/main/taskprocessor.c
URL: http://svn.digium.com/view/asterisk/trunk/main/taskprocessor.c?view=diff&rev=124707&r1=124706&r2=124707
==============================================================================
--- trunk/main/taskprocessor.c (original)
+++ trunk/main/taskprocessor.c Mon Jun 23 10:24:05 2008
@@ -74,9 +74,9 @@
/*! \brief Taskprocessor statistics */
struct tps_taskprocessor_stats *stats;
/*! \brief Taskprocessor current queue size */
- long queue_size;
+ long tps_queue_size;
/*! \brief Taskprocessor queue */
- AST_LIST_HEAD_NOLOCK(queue, tps_task) queue;
+ AST_LIST_HEAD_NOLOCK(tps_queue, tps_task) tps_queue;
/*! \brief Taskprocessor singleton list entry */
AST_LIST_ENTRY(ast_taskprocessor) list;
};
@@ -261,7 +261,7 @@
i = ao2_iterator_init(tps_singletons, 0);
while ((p = ao2_iterator_next(&i))) {
ast_copy_string(name, p->name, sizeof(name));
- qsize = p->queue_size;
+ qsize = p->tps_queue_size;
maxqsize = p->stats->max_qsize;
processed = p->stats->_tasks_processed_count;
ast_cli(a->fd, "\n%24s %17ld %12ld %12ld", name, processed, qsize, maxqsize);
@@ -380,8 +380,8 @@
return NULL;
}
ast_mutex_lock(&tps->taskprocessor_lock);
- if ((task = AST_LIST_REMOVE_HEAD(&tps->queue, list))) {
- tps->queue_size--;
+ if ((task = AST_LIST_REMOVE_HEAD(&tps->tps_queue, list))) {
+ tps->tps_queue_size--;
}
ast_mutex_unlock(&tps->taskprocessor_lock);
return task;
@@ -389,7 +389,7 @@
static int tps_taskprocessor_depth(struct ast_taskprocessor *tps)
{
- return (tps) ? tps->queue_size : -1;
+ return (tps) ? tps->tps_queue_size : -1;
}
/* taskprocessor name accessor */
@@ -493,8 +493,8 @@
return -1;
}
ast_mutex_lock(&tps->taskprocessor_lock);
- AST_LIST_INSERT_TAIL(&tps->queue, t, list);
- tps->queue_size++;
+ AST_LIST_INSERT_TAIL(&tps->tps_queue, t, list);
+ tps->tps_queue_size++;
ast_cond_signal(&tps->poll_cond);
ast_mutex_unlock(&tps->taskprocessor_lock);
return 0;
More information about the asterisk-commits
mailing list