If we never dispatch on a 'limit 1' job, we'll never finish one, thus never convey to next one.

This commit is contained in:
JoelKatz
2013-08-14 00:03:23 -07:00
parent c918ab25b2
commit bed027d852

View File

@@ -272,8 +272,6 @@ void JobQueue::queueJob (Job const& job, ScopedLockType& lock)
Count& count (mJobCounts [type]);
++count.waiting;
if (count.waiting + count.running < getJobLimit (type))
{
m_workers.addTask ();
@@ -284,6 +282,7 @@ void JobQueue::queueJob (Job const& job, ScopedLockType& lock)
//
++count.deferred;
}
++count.waiting;
}
//------------------------------------------------------------------------------