Initial OS X support

This commit is contained in:
Admin 2017-06-14 20:37:59 +03:00 committed by Admin
parent c86f9816d3
commit 1bf428f8da
7 changed files with 17 additions and 8 deletions

View file

@ -54,7 +54,7 @@ Job Workers::job()
Job job = m_job;
uv_rwlock_rdunlock(&m_rwlock);
return std::move(job);
return job;
}
@ -139,7 +139,9 @@ void Workers::onResult(uv_async_t *handle)
void Workers::onTick(uv_timer_t *handle)
{
for (Handle *handle : m_workers) {
m_telemetry->add(handle->threadId(), handle->worker()->hashCount(), handle->worker()->timestamp());
if (handle->worker()) {
m_telemetry->add(handle->threadId(), handle->worker()->hashCount(), handle->worker()->timestamp());
}
}
if ((m_ticks++ & 0xF) == 0) {