Browse Source

Make cfgfile depth calculation thread friendly

fixes
Antonio SJ Musumeci 3 days ago
parent
commit
d9517a5def
  1. 2
      src/config.cpp
  2. 2
      src/config.hpp

2
src/config.cpp

@ -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()
{
}

2
src/config.hpp

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

Loading…
Cancel
Save