Revert "Add Advanced Config parameter for thread count"

This reverts commit 2e0f688b97dcae1a08a1e2f982332b01bd342d5d.
This commit is contained in:
Seth Hillbrand 2025-01-03 21:22:43 -08:00
parent f38e661a02
commit d4d0189157
3 changed files with 2 additions and 19 deletions

View File

@ -121,9 +121,9 @@ static const wxChar EnableExtensionSnaps[] = wxT( "EnableExtensionSnaps" );
static const wxChar ExtensionSnapTimeoutMs[] = wxT( "ExtensionSnapTimeoutMs" );
static const wxChar ExtensionSnapActivateOnHover[] = wxT( "ExtensionSnapActivateOnHover" );
static const wxChar EnableSnapAnchorsDebug[] = wxT( "EnableSnapAnchorsDebug" );
static const wxChar EnableJobset[] = wxT( "EnableJobset" );
static const wxChar MinParallelAngle[] = wxT( "MinParallelAngle" );
static const wxChar HoleWallPaintingMultiplier[] = wxT( "HoleWallPaintingMultiplier" );
static const wxChar MaximumThreads[] = wxT( "MaximumThreads" );
} // namespace KEYS
@ -296,8 +296,6 @@ ADVANCED_CFG::ADVANCED_CFG()
m_MinParallelAngle = 0.001;
m_HoleWallPaintingMultiplier = 1.5;
m_MaximumThreads = 0;
loadFromConfigFile();
}
@ -567,10 +565,6 @@ void ADVANCED_CFG::loadSettings( wxConfigBase& aCfg )
&m_HoleWallPaintingMultiplier, m_HoleWallPaintingMultiplier,
0.1, 100.0 ) );
configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::MaximumThreads,
&m_MaximumThreads, m_MaximumThreads,
0, 500 ) );
// Special case for trace mask setting...we just grab them and set them immediately
// Because we even use wxLogTrace inside of advanced config
wxString traceMasks;

View File

@ -707,15 +707,6 @@ public:
*/
double m_HoleWallPaintingMultiplier;
/**
* Default value for the maximum number of threads to use for parallel processing.
* Setting this value to 0 or less will mean that we use the number of cores available
*
* Setting name: "MaximumThreads"
* Default value: 0
*/
int m_MaximumThreads;
///@}
private:

View File

@ -21,7 +21,6 @@
#define KICAD_SINGLETON_H
#include <bs_thread_pool.hpp>
#include <advanced_config.h>
class KICAD_SINGLETON
{
@ -39,8 +38,7 @@ public:
void Init()
{
int num_threads = std::max( 0, ADVANCED_CFG::GetCfg().m_MaximumThreads );
m_ThreadPool = new BS::thread_pool( num_threads );
m_ThreadPool = new BS::thread_pool();
}
BS::thread_pool* m_ThreadPool;