aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-11 13:03:32 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-11 13:03:32 +0200
commit38717dafc0e76fd5f939eb5ee76a278e2c74a752 (patch)
tree2cd88993400e0ae0e15d26417a831f6651b1d696 /src/cryptonote_basic/miner.h
parentMerge pull request #5380 (diff)
parentminer: fix race when stopping mining with start mining enabled (diff)
downloadmonero-38717dafc0e76fd5f939eb5ee76a278e2c74a752.tar.xz
Merge pull request #5381
def40161 miner: fix race when stopping mining with start mining enabled (moneromooo-monero)
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;