mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 08:17:55 +00:00
Code cleanup
This commit is contained in:
parent
3c697c2d7e
commit
c33033b2f4
1 changed files with 2 additions and 0 deletions
|
@ -173,6 +173,7 @@ SideChain::SideChain(p2pool* pool, NetworkType type, const char* pool_name)
|
|||
|
||||
LOGINFO(4, "running " << numThreads << " pre-calculation workers");
|
||||
|
||||
m_precalcWorkers.reserve(numThreads);
|
||||
for (uint32_t i = 0; i < numThreads; ++i) {
|
||||
m_precalcWorkers.emplace_back(&SideChain::precalc_worker, this);
|
||||
}
|
||||
|
@ -2021,6 +2022,7 @@ void SideChain::finish_precalc()
|
|||
m_precalcWorkers.shrink_to_fit();
|
||||
|
||||
delete m_uniquePrecalcInputs;
|
||||
m_uniquePrecalcInputs = nullptr;
|
||||
|
||||
uv_mutex_destroy(&m_precalcJobsMutex);
|
||||
uv_cond_destroy(&m_precalcJobsCond);
|
||||
|
|
Loading…
Reference in a new issue