Move thread pool into true singleton

Thread pool needs to be stored in a single location for all of KiCad
otherwise each kiface will spin up its own pool of persistent threads
This commit is contained in:
Seth Hillbrand
2025-01-09 09:03:08 -08:00
parent 6c0e5508a9
commit 452e69de85
37 changed files with 147 additions and 67 deletions
+11 -1
View File
@@ -19,11 +19,16 @@
#include <boost/test/unit_test.hpp>
#include <wx/app.h>
#include <mock_pgm_base.h>
#include <pgm_base.h>
#include <qa_utils/wx_utils/wx_assert.h>
bool init_unit_test()
{
SetPgm( new MOCK_PGM_BASE() );
boost::unit_test::framework::master_test_suite().p_name.value = "IPC API tests";
wxApp::SetInstance( new wxAppConsole );
@@ -31,7 +36,12 @@ bool init_unit_test()
bool ok = wxInitialize( boost::unit_test::framework::master_test_suite().argc,
boost::unit_test::framework::master_test_suite().argv );
wxSetAssertHandler( &KI_TEST::wxAssertThrower );
if( ok )
{
wxSetAssertHandler( &KI_TEST::wxAssertThrower );
Pgm().InitPgm( true, true, true );
}
return ok;
}