forked from lthn/blockchain
Merge branch 'predevelop' into auditability
This commit is contained in:
commit
ee47354911
1 changed files with 4 additions and 10 deletions
|
|
@ -643,21 +643,15 @@ void wallets_manager::loop()
|
|||
|
||||
while (!m_stop_singal_sent)
|
||||
{
|
||||
{
|
||||
std::unique_lock<std::mutex> lk(m_stop_singal_sent_mutex);
|
||||
m_stop_singal_sent_mutex_cv.wait_for(lk, std::chrono::microseconds(DAEMON_IDLE_UPDATE_TIME_MS), [&] {return m_stop_singal_sent.load(); });
|
||||
}
|
||||
if (!m_stop_singal_sent)
|
||||
{
|
||||
update_state_info();
|
||||
}
|
||||
|
||||
{
|
||||
std::unique_lock<std::mutex> lk(m_stop_singal_sent_mutex);
|
||||
m_stop_singal_sent_mutex_cv.wait_for(lk, std::chrono::milliseconds(DAEMON_IDLE_UPDATE_TIME_MS), [&] {return m_stop_singal_sent.load(); });
|
||||
}
|
||||
}
|
||||
// while(!m_stop_singal_sent)
|
||||
// {
|
||||
// update_state_info();
|
||||
// std::this_thread::sleep_for(std::chrono::milliseconds(DAEMON_IDLE_UPDATE_TIME_MS));
|
||||
// }
|
||||
}
|
||||
|
||||
void wallets_manager::init_wallet_entry(wallet_vs_options& wo, uint64_t id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue