Make cfgfile depth calculation thread friendly

This commit is contained in:
Antonio SJ Musumeci 2026-03-13 16:30:36 -05:00 • committed by trapexit
parent e0a892f0d0
commit c45c5ce920
2 changed files with 3 additions and 1 deletions

View file

@ -46,6 +46,8 @@ constexpr static const char CACHE_FILES_PROCESS_NAMES_DEFAULT[] =
Config cfg;
thread_local int Config::CfgConfigFile::_depth = 0;
Config::CfgConfigFile::CfgConfigFile()
{
}

View file

@ -95,7 +95,7 @@ public:
{
private:
fs::path _cfg_file;
int _depth = 0;
static thread_local int _depth;
public:
CfgConfigFile();