Added results statistics to API.
This commit is contained in:
parent
1651b041de
commit
9e9cddedc5
21 changed files with 265 additions and 57 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue