Refactor CountingSemaphore as singleton

This commit is contained in:
2024-06-21 09:30:24 +02:00
parent 716748e18c
commit 02bcab01be
5 changed files with 79 additions and 91 deletions

View File

@@ -56,8 +56,6 @@ namespace bayesnet {
private:
std::map<std::string, std::unique_ptr<Node>> nodes;
bool fitted;
float maxThreads = 0.95; // Coefficient to multiply by the number of threads available
int maxThreadsRunning; // Effective max number of threads running
int classNumStates;
std::vector<std::string> features; // Including classname
std::string className;