mirror of https://github.com/Cisco-Talos/clamav
started queueing, it will only spawn at most one thread, and keep queueing without spawning more threads (because threads_idle now non-zero), but the idle thread doesn't get a chance to pick up the tasks. Fix this by testing whether we have enough idle threads to pick up the items in the work queue. If there aren't then spawn some more until max limit is reached, or we have enough idle threads to handle all tasks in the queue. git-svn: trunk@40660.95
parent
6484d65227
commit
4a0bd44290
Loading…
Reference in new issue