should modify m_activeCommands when clearing the queue.

This commit is contained in:
rachytski 2012-02-07 17:51:16 +04:00 committed by Alex Zolotarev
parent a870cf3646
commit b146380d5e

View file

@ -227,7 +227,10 @@ namespace core
void CommandsQueue::Clear()
{
threads::ConditionGuard g(m_cond);
size_t s = m_commands.Size();
m_commands.Clear();
m_activeCommands -= s;
}
int CommandsQueue::ExecutorsCount() const