summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-10-05 12:14:34 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-10-05 19:36:16 +0200
commit2ad4e77a0f266ae6e6fccaebb1d080d2880bdac3 (patch)
tree8d0f004997fb2f65cbfdd81a4e5bd5e5fa380927 /sw
parenta4dbf43bf505980e6acc587aa13096c215aa99e9 (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>
Diffstat (limited to 'sw')
0 files changed, 0 insertions, 0 deletions