[asterisk-commits] dhubbard: branch group/taskprocessors r114879 - /team/group/taskprocessors/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 30 09:45:52 CDT 2008
Author: dhubbard
Date: Wed Apr 30 09:45:51 2008
New Revision: 114879
URL: http://svn.digium.com/view/asterisk?view=rev&rev=114879
Log:
only wait if the the taskprocessor queue is empty
Modified:
team/group/taskprocessors/main/taskprocessor.c
Modified: team/group/taskprocessors/main/taskprocessor.c
URL: http://svn.digium.com/view/asterisk/team/group/taskprocessors/main/taskprocessor.c?view=diff&rev=114879&r1=114878&r2=114879
==============================================================================
--- team/group/taskprocessors/main/taskprocessor.c (original)
+++ team/group/taskprocessors/main/taskprocessor.c Wed Apr 30 09:45:51 2008
@@ -316,7 +316,8 @@
ast_mutex_unlock(&i->taskprocessor_lock);
break;
}
- ast_cond_wait(&i->poll_cond, &i->taskprocessor_lock);
+ if (!ast_taskprocessor_depth(i))
+ ast_cond_wait(&i->poll_cond, &i->taskprocessor_lock);
ast_mutex_unlock(&i->taskprocessor_lock);
}
while (ast_taskprocessor_depth(i)) {
More information about the asterisk-commits
mailing list