summaryrefslogtreecommitdiffstats
path: root/executor.cpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-09-27 16:22:34 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-09-30 23:46:08 +0200
commitb1e92092bb5c93863d869a2d6b6e057918a77b2f (patch)
treed8a4e434159a12af6542c8302fb26d4860ac2a6d /executor.cpp
parentef551cc032716d8cb21ecfdff73bb6c2bc581740 (diff)
downloadxmr-stak-b1e92092bb5c93863d869a2d6b6e057918a77b2f.zip
xmr-stak-b1e92092bb5c93863d869a2d6b6e057918a77b2f.tar.gz
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
Diffstat (limited to 'executor.cpp')
-rw-r--r--executor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/executor.cpp b/executor.cpp
index 99f7ad5..0dd9cd7 100644
--- a/executor.cpp
+++ b/executor.cpp
@@ -122,7 +122,7 @@ void executor::sched_reconnect()
rt, int_port(iReconnectAttempts));
auto work = xmrstak::miner_work();
- xmrstak::GlobalStates::switch_work(work);
+ xmrstak::GlobalStates::inst().switch_work(work);
push_timed_event(ex_event(EV_RECONNECT, usr_pool_id), rt);
}
@@ -240,7 +240,7 @@ void executor::on_pool_have_job(size_t pool_id, pool_job& oPoolJob)
oWork.iTarget32 = oPoolJob.iTarget32;
- xmrstak::GlobalStates::switch_work(oWork);
+ xmrstak::GlobalStates::inst().switch_work(oWork);
if(pool_id == dev_pool_id)
return;
@@ -362,7 +362,7 @@ void executor::on_switch_pool(size_t pool_id)
oWork.iTarget32 = oPoolJob.iTarget32;
- xmrstak::GlobalStates::switch_work(oWork);
+ xmrstak::GlobalStates::inst().switch_work(oWork);
if(dev_pool->is_running())
push_timed_event(ex_event(EV_DEV_POOL_EXIT), 5);
OpenPOWER on IntegriCloud