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

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

View File

@@ -163,7 +163,7 @@ size_t xmrig::OclWorker::intensity() const
}
void xmrig::OclWorker::start(xmrig::Config*)
void xmrig::OclWorker::start()
{
cl_uint results[0x100];

View File

@@ -40,7 +40,6 @@ namespace xmrig {
class IOclRunner;
class Job;
class Config;
class OclWorker : public Worker
@@ -60,7 +59,7 @@ public:
protected:
bool selfTest() override;
size_t intensity() const override;
void start(Config*) override;
void start() override;
private:
bool consumeJob();