diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-10-05 12:14:34 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-10-06 12:37:17 +0200 |
commit | 1400114a69ef4b946f66e0b9af2ab20299478a3e (patch) | |
tree | b1646315dbb5ddead04d778c9df8dfe66c20c4d0 /bean/qa | |
parent | 0566520049f561bc1e222ed78a3dc84214f65ff3 (diff) |
fix allocating thread pool workers
Tasks are removed from the queue before a worker starts working
on it, which means that maTasks.size() is not the number of tasks
to do, because the worked on tasks are not included there.
This means the code could spawn only a smaller number of workers
than were needed (and than CPU cores that are available).
Change-Id: Ic6e6a79316cf48d82f2b80be7ad477b723b2c4e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103955
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
(cherry picked from commit 2ad4e77a0f266ae6e6fccaebb1d080d2880bdac3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103972
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'bean/qa')
0 files changed, 0 insertions, 0 deletions