mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-26 02:58:43 +02:00
tests: raise Concurrency
config in global app fixture
This commit is contained in:
parent
5af6b3b2f5
commit
62a43a6d4a
@ -8,6 +8,12 @@ static bool IcingaInitialized = false;
|
||||
|
||||
IcingaApplicationFixture::IcingaApplicationFixture()
|
||||
{
|
||||
// This limits the number of threads in the thread pool, but does not limit the number of concurrent checks.
|
||||
// By default, we'll have only 2 threads in the pool, which is too low for some heavy checker tests. So, we
|
||||
// set the concurrency to the number of hardware threads available on the system and the global thread pool
|
||||
// size will be the double of that (see threadpool.cpp).
|
||||
Configuration::Concurrency = std::thread::hardware_concurrency();
|
||||
|
||||
if (!IcingaInitialized)
|
||||
InitIcingaApplication();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user