Added results statistics to API.

This commit is contained in:
XMRig 2017-09-01 08:02:56 +03:00
parent 1651b041de
commit 9e9cddedc5
21 changed files with 265 additions and 57 deletions

View file

@ -79,3 +79,15 @@ void Api::tick(const Hashrate *hashrate)
m_state->tick(hashrate);
uv_mutex_unlock(&m_mutex);
}
void Api::tick(const Results &results)
{
if (!m_state) {
return;
}
uv_mutex_lock(&m_mutex);
m_state->tick(results);
uv_mutex_unlock(&m_mutex);
}