mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user