mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-22 06:28:36 +02:00
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
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user