Add class JobResult.
This commit is contained in:
parent
3ad11685cc
commit
a0a8711dab
12 changed files with 112 additions and 22 deletions
|
@ -30,13 +30,15 @@
|
|||
|
||||
Worker::Worker(Handle *handle) :
|
||||
m_nicehash(handle->nicehash()),
|
||||
m_handle(handle),
|
||||
m_id(handle->threadId())
|
||||
m_id(handle->threadId()),
|
||||
m_threads(handle->threads()),
|
||||
m_count(0),
|
||||
m_sequence(0)
|
||||
{
|
||||
m_handle->setWorker(this);
|
||||
handle->setWorker(this);
|
||||
|
||||
if (Cpu::threads() > 1 && m_handle->affinity() != -1L) {
|
||||
Cpu::setAffinity(m_id, m_handle->affinity());
|
||||
if (Cpu::threads() > 1 && handle->affinity() != -1L) {
|
||||
Cpu::setAffinity(m_id, handle->affinity());
|
||||
}
|
||||
|
||||
m_ctx = Mem::create(m_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue