Removed non thread safe access to config.

This commit is contained in:
XMRig
2020-11-16 07:58:28 +07:00
parent 17da388fd2
commit e45bfa1ace
13 changed files with 24 additions and 27 deletions

View File

@@ -481,7 +481,7 @@ void xmrig::CudaBackend::start(IWorker *worker, bool ready)
mutex.unlock();
if (ready) {
worker->start(d_ptr->controller->config());
worker->start();
}
}

View File

@@ -145,7 +145,7 @@ size_t xmrig::CudaWorker::intensity() const
}
void xmrig::CudaWorker::start(xmrig::Config*)
void xmrig::CudaWorker::start()
{
while (Nonce::sequence(Nonce::CUDA) > 0) {
if (!isReady()) {

View File

@@ -39,7 +39,6 @@ namespace xmrig {
class ICudaRunner;
class Config;
class CudaWorker : public Worker
@@ -59,7 +58,7 @@ public:
protected:
bool selfTest() override;
size_t intensity() const override;
void start(Config*) override;
void start() override;
private:
bool consumeJob();