Files
xmr-stak/Environment.hpp
T
psychocrypt b1e92092bb fix singleton issues on windows
- pass all singletons into the backend libraries
- move some cpu config features from the cpu config file to the global config.txt
- add global jconf to the xported singleton list
2017-09-30 23:46:08 +02:00

43 lines
541 B
C++

#pragma once
class printer;
class jconf;
namespace xmrstak
{
class GlobalStates;
struct Environment
{
static Environment& inst()
{
static Environment env;
return env;
}
Environment& operator=(const Environment& env)
{
this->pPrinter = env.pPrinter;
this->pGlobalStates = env.pGlobalStates;
this->pJconfConfig = env.pJconfConfig;
return *this;
}
Environment() : pPrinter(nullptr), pGlobalStates(nullptr)
{
}
printer* pPrinter;
GlobalStates* pGlobalStates;
jconf* pJconfConfig;
};
} // namepsace xmrstak