1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-13 01:52:50 -05:00

Added class MultiWorker and remove classes SingleWorker and DoubleWorker.

This commit is contained in:
XMRig
2018-04-14 22:14:57 +07:00
parent c81401ab2d
commit 4b71b7aa29
13 changed files with 173 additions and 345 deletions

View File

@@ -34,8 +34,8 @@
Worker::Worker(Handle *handle) :
m_id(handle->threadId()),
m_totalThreads(handle->totalThreads()),
m_totalWays(handle->totalWays()),
m_offset(handle->offset()),
m_hashCount(0),
m_timestamp(0),
m_count(0),
@@ -47,7 +47,7 @@ Worker::Worker(Handle *handle) :
}
Platform::setThreadPriority(m_thread->priority());
m_ctx = Mem::create(m_id);
m_ctxLegacy = Mem::create(m_id);
}