summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/backendConnector.cpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-09-29 22:06:09 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-09-30 23:46:08 +0200
commit855af1cf65de1fd3795de3c9a859fd9242625a84 (patch)
tree51368c6f1d6cd401969f4beedcbcccc21d055153 /xmrstak/backend/backendConnector.cpp
parent8babae3156430f5aa6b804f7c352ffb178097963 (diff)
downloadxmr-stak-855af1cf65de1fd3795de3c9a859fd9242625a84.zip
xmr-stak-855af1cf65de1fd3795de3c9a859fd9242625a84.tar.gz
fix compile
Diffstat (limited to 'xmrstak/backend/backendConnector.cpp')
-rw-r--r--xmrstak/backend/backendConnector.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/xmrstak/backend/backendConnector.cpp b/xmrstak/backend/backendConnector.cpp
index d07b54d..e0ac85a 100644
--- a/xmrstak/backend/backendConnector.cpp
+++ b/xmrstak/backend/backendConnector.cpp
@@ -56,19 +56,19 @@ bool BackendConnector::self_test()
return true;
}
-std::vector<IBackend*>* BackendConnector::thread_starter(miner_work& pWork)
+std::vector<iBackend*>* BackendConnector::thread_starter(miner_work& pWork)
{
- GlobalStates::inst().iGlobalJobNo = 0;
- GlobalStates::inst().iConsumeCnt = 0;
+ globalStates::inst().iGlobalJobNo = 0;
+ globalStates::inst().iConsumeCnt = 0;
- std::vector<IBackend*>* pvThreads = new std::vector<IBackend*>;
+ std::vector<iBackend*>* pvThreads = new std::vector<iBackend*>;
#ifndef CONF_NO_CUDA
if(Params::inst().useNVIDIA)
{
- Plugin nvidiaPlugin("NVIDIA", "xmrstak_cuda_backend");
- std::vector<IBackend*>* nvidiaThreads = nvidiaPlugin.startBackend(static_cast<uint32_t>(pvThreads->size()), pWork, Environment::inst());
+ plugin nvidiaplugin("NVIDIA", "xmrstak_cuda_backend");
+ std::vector<iBackend*>* nvidiaThreads = nvidiaplugin.startBackend(static_cast<uint32_t>(pvThreads->size()), pWork, environment::inst());
pvThreads->insert(std::end(*pvThreads), std::begin(*nvidiaThreads), std::end(*nvidiaThreads));
if(nvidiaThreads->size() == 0)
printer::inst()->print_msg(L0, "WARNING: backend NVIDIA disabled.");
@@ -78,8 +78,8 @@ std::vector<IBackend*>* BackendConnector::thread_starter(miner_work& pWork)
#ifndef CONF_NO_OPENCL
if(Params::inst().useAMD)
{
- Plugin amdPlugin("AMD", "xmrstak_opencl_backend");
- std::vector<IBackend*>* amdThreads = amdPlugin.startBackend(static_cast<uint32_t>(pvThreads->size()), pWork, Environment::inst());
+ plugin amdplugin("AMD", "xmrstak_opencl_backend");
+ std::vector<iBackend*>* amdThreads = amdplugin.startBackend(static_cast<uint32_t>(pvThreads->size()), pWork, environment::inst());
pvThreads->insert(std::end(*pvThreads), std::begin(*amdThreads), std::end(*amdThreads));
if(amdThreads->size() == 0)
printer::inst()->print_msg(L0, "WARNING: backend AMD disabled.");
@@ -96,7 +96,7 @@ std::vector<IBackend*>* BackendConnector::thread_starter(miner_work& pWork)
}
#endif
- GlobalStates::inst().iThreadCount = pvThreads->size();
+ globalStates::inst().iThreadCount = pvThreads->size();
return pvThreads;
}
OpenPOWER on IntegriCloud