2ad4e77a0f
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>
30 lines
848 B
Makefile
30 lines
848 B
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_CppunitTest_CppunitTest,comphelper_threadpool_test))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,comphelper_threadpool_test, \
|
|
comphelper/qa/unit/threadpooltest \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_externals,comphelper_threadpool_test,\
|
|
boost_headers \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_sdk_api,comphelper_threadpool_test))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,comphelper_threadpool_test, \
|
|
comphelper \
|
|
cppuhelper \
|
|
cppu \
|
|
sal \
|
|
tl \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|