This commit is contained in:
Artem Zuikov 2025-06-29 20:36:01 +07:00 committed by GitHub
commit eccb1ccc48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 26 deletions

View file

@ -465,16 +465,17 @@ void xmrig::CudaBackend::setJob(const Job &job)
void xmrig::CudaBackend::start(IWorker *worker, bool ready)
{
mutex.lock();
{
std::lock_guard<std::mutex> lock(mutex);
if (d_ptr->status.started(ready)) {
d_ptr->status.print();
if (d_ptr->status.started(ready)) {
d_ptr->status.print();
CudaWorker::ready = true;
}
CudaWorker::ready = true;
}
mutex.unlock();
if (ready) {
worker->start();
}