aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-15 19:08:22 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-01 19:28:50 +0000
commitdef4016171e190e75b5f04430b56dfb9686c2f27 (patch)
tree87bb7fa2373579eac3fd4f40fa0f0aa871adec21 /src/cryptonote_basic/miner.h
parent4308a2e1739aa754588e7c1829775602be275215 (diff)
downloadmonzero-core-def4016171e190e75b5f04430b56dfb9686c2f27.tar.gz
monzero-core-def4016171e190e75b5f04430b56dfb9686c2f27.tar.xz
monzero-core-def4016171e190e75b5f04430b56dfb9686c2f27.zip
miner: fix race when stopping mining with start mining enabled
Diffstat (limited to 'src/cryptonote_basic/miner.h')
-rw-r--r--src/cryptonote_basic/miner.h1
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;