diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-15 19:08:22 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-01 19:28:50 +0000 |
commit | def4016171e190e75b5f04430b56dfb9686c2f27 (patch) | |
tree | 87bb7fa2373579eac3fd4f40fa0f0aa871adec21 /src/cryptonote_basic/miner.h | |
parent | Merge pull request #5318 (diff) | |
download | monero-def4016171e190e75b5f04430b56dfb9686c2f27.tar.xz |
miner: fix race when stopping mining with start mining enabled
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_basic/miner.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<uint32_t> m_threads_active; std::atomic<int32_t> m_pausers_count; epee::critical_section m_miners_count_lock; |