From def4016171e190e75b5f04430b56dfb9686c2f27 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 15 Mar 2019 19:08:22 +0000 Subject: miner: fix race when stopping mining with start mining enabled --- src/cryptonote_basic/miner.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cryptonote_basic/miner.h') diff --git a/src/cryptonote_basic/miner.h b/src/cryptonote_basic/miner.h index 08b1bd7f1..bbb576fff 100644 --- a/src/cryptonote_basic/miner.h +++ b/src/cryptonote_basic/miner.h @@ -125,6 +125,7 @@ namespace cryptonote uint64_t m_height; volatile uint32_t m_thread_index; volatile uint32_t m_threads_total; + std::atomic m_threads_active; std::atomic m_pausers_count; epee::critical_section m_miners_count_lock; -- cgit v1.2.3